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 547479 - Currently selected file on DBUS
Currently selected file on DBUS
Status: RESOLVED DUPLICATE of bug 498506
Product: nautilus
Classification: Core
Component: Extension Library
2.22.x
Other All
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-12 19:18 UTC by conundrum
Modified: 2009-02-20 00:02 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description conundrum 2008-08-12 19:18:33 UTC
Presently there is no means for another application to know what file or folder is currently selected in a Nautilus window.  This takes away a lot of great features launcher applications (such as GNOME Do) and such could potentially do.  

It seems like putting the currently selected file in the active/most recently active Nautilus window on DBUS would allow a lot of applications to extend their functionality in a way which would encourage use of Nautilus.
Comment 1 Christian Neumair 2008-08-13 10:27:48 UTC
I agree that better D-Bus interaction is very desirable.

However, you can achieve selection change notification with classical X programming. You may want to listen to the "owner-change" signal of the GtkClipboard created with gtk_clipboard_get (GDK_SELECTION_CLIPBOARD), and fetch the selection data with the "text/uri-list" atom. You can then check that Nautilus owns the clipboard by verifying that the WM_CLASS of the clipboard owner is "nautilus".
Comment 2 Cosimo Cecchi 2009-02-20 00:02:57 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


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