Doubleclicking some.desktop file returns wrong %k variable

Bug #1490337 reported by kentzversky
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Invalid
Undecided
Unassigned
thunar (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have the following backup.desktop file on my removable HDD

[Desktop Entry]
Type=Application
Name=Start Backup
Exec=bash -c '%k/.backup.sh;$SHELL'
OnlyShowIn=GNOME;Unity;MATE;LXDE;
Icon=lxterminal
Terminal=true
X-KeepTerminal=true
StartupNotify=true

as it says here: http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

%k The location of the desktop file as either a URI (if for example gotten from the vfolder system) or a local filename or empty if no location is known.

doubleclicking it in PcmanFM acts as its expected - it opens lxterminal and runs .backup.sh

while the same in Thunar returns:
bash: /media/z/ZVs_WHITE/StartBackup.desktop/.backup.sh: Not a directory

error happens in %k as it should return just path to some.desktop file instead it returns path+some.desktop in Thunar.

Changed in thunar (Ubuntu):
assignee: nobody → kentzversky (zvsmailrelay)
description: updated
Changed in thunar (Ubuntu):
assignee: kentzversky (zvsmailrelay) → nobody
Revision history for this message
Ben High (explodingkittens) wrote :

Thanks for reporting this problem! I was able to replicate this bug in Thunar 1.6.10, as well as in Nautilus 3.14.2, but PCManFM does not have this problem, as said in the report.

Changed in thunar (Ubuntu):
status: New → Confirmed
affects: thunar (Ubuntu) → exo (Ubuntu)
affects: exo (Ubuntu) → thunar (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1490337

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in nautilus (Ubuntu):
status: New → Incomplete
Changed in nautilus (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.