Re: How to detect already running application...



On Fri, 2005-03-18 at 06:05, Miroslav Rajcic wrote:
Is there any gtk-only way (not Gnome oriented) to do this ?
I am looking for the same answer for my app, and the code needs to be
working on Windows too.

Windows-only code is pretty simple using named mutex to act as kind of
interprocess semaphore.
But I am not sure if it can be that simple on Linux.

I think that the problem is more complicated than this, in general. On a
multiuser system, what, exactly, does it mean to have a single instance
of an application? One per machine? One per user? One per desktop?

I've read several articles lamenting the difficulty of doing this
reliably, even on Win32. I've never seen a discussion of doing it
portably as well.






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