! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Copy to Clipboard does not put text/uri-list on clipboard
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description Ulrik 2017-02-23 20:09:06 CET
xfdesktop is inconsistent with Thunar.

Not using text/uri-list on the desktop breaks interoperation with several other programs.

You can check the current targets on the clipboard using this: (Requires python 3 gi)

/usr/bin/python3 -c "from gi.repository import Gdk, Gtk; c = Gtk.Clipboard.get_default(Gdk.Display.get_default()); print(c.wait_for_targets())"


Output when copying 1 file in xfdesktop:

(True, targets=[Gdk.Atom.intern("TIMESTAMP", False), Gdk.Atom.intern("TARGETS", False), Gdk.Atom.intern("MULTIPLE", False), Gdk.Atom.intern("x-special/gnome-copied-files", False), Gdk.Atom.intern("UTF8_STRING", False)])

Same in Thunar:

(True, targets=[Gdk.Atom.intern("TIMESTAMP", False), Gdk.Atom.intern("TARGETS", False), Gdk.Atom.intern("MULTIPLE", False), Gdk.Atom.intern("text/uri-list", False), Gdk.Atom.intern("x-special/gnome-copied-files", False), Gdk.Atom.intern("UTF8_STRING", False)])



Version:

xfdesktop --version
This is xfdesktop version 4.12.3, running on Xfce 4.12.
Built with GTK+ 2.24.30, linked with GTK+ 2.24.31.
Build options:
    Desktop Menu:        enabled
    Desktop Icons:       enabled
    Desktop File Icons:  enabled
Comment 1 Andre Miranda editbugs 2019-05-14 03:58:20 CEST
Updated python snippet (to avoid gdk/gtk3 warnings):
/usr/bin/python3 -c "import gi; gi.require_version('Gdk', '3.0'); gi.require_version('Gtk', '3.0'); from gi.repository import Gdk, Gtk; c = Gtk.Clipboard.get_default(Gdk.Display.get_default()); print(c.wait_for_targets())"
Comment 2 Git Bot editbugs 2019-05-14 03:59:03 CEST
Andre Miranda referenced this bugreport in commit c72148e4a7e29613503a4fd8450bdc3a53e33659

Use clipboard target "text/uri-list" when copying/cutting (Bug #13379)

https://git.xfce.org/xfce/xfdesktop/commit?id=c72148e4a7e29613503a4fd8450bdc3a53e33659
Comment 3 Git Bot editbugs 2019-06-04 21:43:51 CEST
Andre Miranda referenced this bugreport in commit 0bb9106ef9cc5b3dcf8d6851b85f67878944522f

Use clipboard target "text/uri-list" when copying/cutting (Bug #13379)

https://git.xfce.org/xfce/xfdesktop/commit?id=0bb9106ef9cc5b3dcf8d6851b85f67878944522f

Bug #13379

Reported by:
Ulrik
Reported on: 2017-02-23
Last modified on: 2019-06-04

People

Assignee:
Eric Koegel
CC List:
1 user

Version

Version:
4.13.3

Attachments

Additional information