← Back to team overview

unity-api-bugs team mailing list archive

[Bug 1113883] Re: Quicklists do not support the PATH key

 

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 <ps-jenkins@xxxxxxxxxxxxxxxxxxx>   Fri, 23 Aug 2013 02:08:00 +0000

** Branch linked: lp:ubuntu/saucy-proposed/libindicator

** Changed in: libindicator (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Unity API
bugs, which is subscribed to libindicator.
https://bugs.launchpad.net/bugs/1113883

Title:
  Quicklists do not support the PATH key

Status in Libindicator:
  Fix Committed
Status in Unity:
  Won't Fix
Status in “libindicator” package in Ubuntu:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/libindicator/+bug/1113883/+subscriptions