GNOME Bugzilla – Bug 170782
Can't there be an api added so that a program can see if it is already running in the current session
Last modified: 2007-08-21 23:11:30 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:
Moving this to gtk+ for discussion there. A similar API in KDE is called KUniqueApplication or something like that
This is what Gtk Unique does. http://mail.gnome.org/archives/desktop-devel-list/2006-November/msg00078.html
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 ***