Public bug reported:

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.

** Affects: unity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/899333

Title:
  Terminal=true does not work in Shortcut Group

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/899333/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to