[Kde-kiosk] Disallowing Multiple Opening of a Window

Waldo Bastian bastian at kde.org
Mon Jul 26 23:14:57 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 26 July 2004 20:47, steve f wrote:
> Is there something within KDe that will prevent me from starting more than
> one instance of an application?
>
> I have an XTerm session that begins when you click an icon. Problem is, I
> can't have multiple windows opening of this application because every one
> you start takes another tty session on the server.  Is there anything in
> KDE that will limit to one running session of an application when the icon
> is clicked?

No, not in general, but you could let the button run a small shell script that 
creates a file on startup, runs the xterm and deletes the file again when the 
xterm exits. At the start of the script you can then check if the file exists 
already and if so return directly without doing anything.

Cheers,
Waldo
- -- 
bastian at kde.org  |   KDE Community World Summit 2004  |  bastian at suse.com
bastian at kde.org  | 21-29 August, Ludwigsburg, Germany |  bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFBBXRSN4pvrENfboIRArvrAJ93QwywJZmjmaThgFRuQ+g9BEEUWQCgmCHA
VEnMDvZf/k3T5jQpSPD9pzo=
=eVDx
-----END PGP SIGNATURE-----


More information about the kde-kiosk mailing list