Re: [gtk-list] Re: Detecting multiple application instances



>>>>> "Geert" == Geert Bevin <gbevin@thunderstorms.org> writes:

Geert> Apparently, the gnome session manager support multiple sessions
Geert> for the same user on the same machine. Putting the lock file
Geert> (or fifo, I prefer this, since it allows two ways
Geert> communication) in the homedir prevents a second (or third or
Geert> ...) session from launching a new instance of the app. I can't
Geert> however find a way to uniquely identify a gnome session by an
Geert> id or somthing (only session client ids are apparently
Geert> available).

Gnome programs that need to do this work by putting a property on the
X server.  This fails in some situations (e.g., if you are debugging
the session manager and want to run it multiple times), but works for
most users.

Tom



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]