Quicklists do not support the PATH key
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/
#!/usr/bin/python
from gi.repository import Gtk
import os
pwd=os.
win=Gtk.Window()
label=Gtk.
win.add(label)
win.show_all()
win.connect(
Gtk.main()
-------
And the .desktop file:
[Desktop Entry]
Name=Display Working Directory
Exec=displaycwd.py
Type=Application
Actions=quicklist
Path=/home/
Icon=folder
[Desktop Action quicklist]
Name=QL Display WD
Exec=displaycwd.py
Path=/home/
Related branches
- Charles Kerr (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
- Ted Gould (community): Needs Fixing
-
Diff: 81 lines (+28/-3)1 file modifiedlibindicator/indicator-desktop-shortcuts.c (+28/-3)
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 |
I tried to look at unity quicklists myself but only found this "official" specification /wiki.ubuntu. com/Unity/ LauncherAPI# Quicklists OnlyShowIn) but there is no mention of any of the other entry keys in the .desktop standard standards. freedesktop. org/desktop- entry-spec/ latest/ ar01s05. html
https:/
there it only states three arguments for a desktop action (Name,Exec,
http://
that makes me consider if this is a bug or a deliberate limitation of quicklists...