After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 170782 - Can't there be an api added so that a program can see if it is already running in the current session
Can't there be an api added so that a program can see if it is already runnin...
Status: RESOLVED DUPLICATE of bug 378260
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal enhancement
: future
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-03-18 11:18 UTC by Kristof Vansant
Modified: 2007-08-21 23:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kristof Vansant 2005-03-18 11:18:40 UTC
Please describe the problem:
I was wondering because of this hack:
http://cvs.gnome.org/viewcvs/gnome-volume-manager/src/clipboard.c?rev=1.3&view=auto


Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Kjartan Maraas 2006-02-07 14:07:19 UTC
Moving this to gtk+ for discussion there. A similar API in KDE is called KUniqueApplication or something like that
Comment 2 Denis Jacquerye 2007-08-21 21:42:31 UTC
This is what Gtk Unique does.

http://mail.gnome.org/archives/desktop-devel-list/2006-November/msg00078.html
Comment 3 Havoc Pennington 2007-08-21 23:11:30 UTC
I don't think that clipboard thing is really a hack btw, I mean, obviously GTK should have a better API for it, but X selections (which underly GtkClipboard) are intended to be used in exactly that way. Window managers maintain a single instance of themselves using a selection for example. The code looks a bit ugly since GtkClipboard is not really designed for using selections for single instance, but the underlying selection feature of X11 is designed for that. The code would probably be cleaner if it just used Xlib raw instead of an Xlib/GTK mix.

D-Bus bus names are also intended to be used in this way, they are modeled on X selections.





*** This bug has been marked as a duplicate of 378260 ***