Quicklists do not support the PATH key

Bug #1113883 reported by icb410
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Unity
Won't Fix
Medium
Unassigned
libindicator
Fix Committed
Medium
Marco Trevisan (Treviño)
libindicator (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In a .desktop file you can specify the Path key in a [Desktop Entry] so that the working directory will be that path when the Exec is launched. However, this key does not seem to work when launching items from Quicklist even though the Path key is set in the [Desktop Action] group.

For testing purposes, here's an example little script (displaycwd.py) that when run displays the current working path in a Gtk window. There's an example .desktop file that follows showing that when run normally through the Launcher it opens with the right path (/home/ian/Documents in my case). However, activating it through a quicklist, displays the user directory (/home/ian in my case) instead. Just make sure to put the script somewhere in your $PATH.

#!/usr/bin/python
from gi.repository import Gtk
import os

pwd=os.path.realpath(os.curdir)

win=Gtk.Window()
label=Gtk.Label(pwd)
win.add(label)
win.show_all()
win.connect('destroy', Gtk.main_quit)
Gtk.main()

-----------------------------------------
And the .desktop file:

[Desktop Entry]
Name=Display Working Directory
Exec=displaycwd.py
Type=Application
Actions=quicklist
Path=/home/ian/Documents
Icon=folder

[Desktop Action quicklist]
Name=QL Display WD
Exec=displaycwd.py
Path=/home/ian/Documents

Related branches

Revision history for this message
John Larsen (dmessiahpchan) wrote :

I tried to look at unity quicklists myself but only found this "official" specification
https://wiki.ubuntu.com/Unity/LauncherAPI#Quicklists
there it only states three arguments for a desktop action (Name,Exec,OnlyShowIn) but there is no mention of any of the other entry keys in the .desktop standard
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html

that makes me consider if this is a bug or a deliberate limitation of quicklists...

Stephen M. Webb (bregma)
Changed in unity:
status: New → Triaged
importance: Undecided → Medium
Changed in libindicator:
status: New → Confirmed
Changed in libindicator:
status: Confirmed → Triaged
Changed in unity:
status: Triaged → Won't Fix
Changed in libindicator:
importance: Undecided → Medium
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
status: Triaged → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:libindicator at revision 509, scheduled for release in libindicator, milestone Unknown

Changed in libindicator:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libindicator - 12.10.2+13.10.20130823-0ubuntu1

---------------
libindicator (12.10.2+13.10.20130823-0ubuntu1) saucy; urgency=low

  [ Marco Trevisan (Treviño) ]
  * IndicatorDesktopShortcuts: add support to Path key for shortcut
    items. (LP: #1113883)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 509
 -- Ubuntu daily release <email address hidden> Fri, 23 Aug 2013 02:08:00 +0000

Changed in libindicator (Ubuntu):
status: New → Fix Released
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.