Re: [gtk-list] How can I find out if a program is already running
- From: Zoltan Boszormenyi <zboszor freemail hu>
- To: mpsuzuki hiroshima-u ac jp
- Cc: gtk-list gnome org
- Subject: Re: [gtk-list] How can I find out if a program is already running
- Date: Fri, 09 Dec 2005 16:53:15 +0100
Hi,
mpsuzuki hiroshima-u ac jp írta:
Hi
On Fri, 09 Dec 2005 14:54:18 +0100
Zoltan Boszormenyi <zboszor freemail hu> wrote:
I need to find out whether an instance of a program is already running
and possibly unminimize it or bring it above any other windows, so
I can prevent an application started again.
Is is possible using GTK-1.2, or GTK-2.x, and how?
I'm afraid gtk does not have support for that.
I think it's role of task manager for desktop
(possibly you want to know whether the program
is running on same desktop - not on same computer,
and reordering of window is the role of desktop
manager, not GUI toolkit like GTK).
Yes, I would like to know whether a program is started on the same X
display.
Thus, there might be something helpful in GNOME.
However, I don't know you want to use GNOME or
anything else.
And yes again, the program I would like to modify uses the gnome 1.x
libraries
and was created with Glade 0.6.x. The program's main window is a GnomeApp,
and there are two properties (WM Class and WM Name) that I can set in Glade.
I guess these could be used to find out whether a window is registered
(still running)
on the X display I try to run the second instance. The question is how?
Best regards,
Zoltán Böszörményi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]