Terminal=true does not work in Shortcut Group

Bug #899333 reported by David Williams
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity
Confirmed
Low
Unassigned
unity-lens-applications
Confirmed
Undecided
Unassigned
unity (Ubuntu)
Confirmed
Low
Unassigned
unity-lens-applications (Ubuntu)
Confirmed
Undecided
Unassigned
unity-place-applications (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I've tried to make a "launcher" for Unity, whose purpose is to have several options to execute some particular .sh file. Some those .sh files need a "terminal" and some do not. But, I have found that for a "Shortcut group" Terminal=true seems to have no effect.

Here's a simplified case to reproduce. For demonstrtaion you could likely use an echo "hello world" type sh file, but after having trouble with my real world case, I used the sh script in
http://ubuntuforums.org/archive/index.php/t-1706383.html
My own .sh files are long and complicated and have other prereqs.

So, I put the script in my ~/bin directory, named textmenu.sh and created a desktop file named "textmenu.desktop" which I later drag and drop on the launcher. The contents of the .desktop file (for demonstration) is

[Desktop Entry]
Name=Utility Menu
Exec=textmenu.sh
Icon=/usr/share/icons/Humanity/apps/48/administration.svg
Terminal=true
Type=Application
StartupNotify=true
X-Ayatana-Desktop-Shortcuts=one;

[one Shortcut Group]
Name=one
Exec=textmenu.sh
Icon=/usr/share/icons/Humanity/apps/48/administration.svg
Terminal=true
Type=Application
StartupNotify=true

Once in launcher, the first item "Utility Menu" does open a terminal (and shows results of .sh file). The second item, the Shortcut Group named "one", does _not_ open a terminal. From my "real world" example, those shortcuts would still execute and the applications still be visible (its a full Eclipse app) but, no "terminal" to view debug output, etc.

One work around is to use something like "Exec=gnome-terminal -x testmenu.sh" ... but, in my real world example, there's other complications whether to show the terminal or not so to always force a "gnome-terminal" in the short cut seems like the wrong place to put the logic.

I have not tried this on earlier versions of launcher. Current system info:

$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10

$ apt-cache policy unity
unity:
  Installed: 4.24.0-0ubuntu2b1
  Candidate: 4.24.0-0ubuntu2b1
  Version table:
 *** 4.24.0-0ubuntu2b1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     4.22.0-0ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages

I hope you find this bug report useful.

Omer Akram (om26er)
Changed in unity-place-applications (Ubuntu):
importance: Undecided → Low
Changed in unity:
importance: Undecided → Low
Changed in unity (Ubuntu):
importance: Undecided → Low
Changed in unity:
status: New → Confirmed
Changed in unity-lens-applications:
status: New → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
Changed in unity-place-applications (Ubuntu):
status: New → Confirmed
Changed in unity-lens-applications (Ubuntu):
status: New → Confirmed
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.