#597 .desktop works on the desktop, doesn't from the menu

-
closed
nobody
lxpanel (199)
5
2014-08-21
2013-08-10
No

[reposted here from http://askubuntu.com/questions/330587/lubuntu-desktop-shortcut-works-on-the-desktop-but-doesnt-from-the-menu looks like a bug]

I've created a simple shortcut.desktop in my Lubuntu 13.04 /usr/share/applications:

[Desktop Entry]
Type=Application
Name=shockwave
Icon=/home/zane/Pictures/Evil Decepticons.png
Exec=/home/zane/Documents/Zane_Shockwave-RDP.sh
Terminal=true
MimeType=text/plain
Categories=GTK;WebBrowser;Network
The pointed sh contains just echo "it works".

If I double-click the .desktop it directly, the script runs and everything works as expected.

But if I click the menu entry from the desktop, I just get a "stuck", non-inputable Terminal.

Note: to workaround this bug https://bugs.launchpad.net/ubuntu/+source/pcmanfm/+bug/975152/comments/14 I've just "lxterminal" under PCManFM -> Prefernces -> Advanced, otherwise I can't run .sh at all.

Any ideas?

Edit I also tried these variant, but I always get the same result:

Exec=sh /home/zane/Documents/Zane_Shockwave-RDP.sh
Exec=lxterminal /home/zane/Documents/Zane_Shockwave-RDP.sh

Discussion

    • labels: --> lxpanel
     
  • Henry Gebhardt
    Henry Gebhardt
    2013-08-25

    It works for me. Perhaps the problem is that lxpanel has a different application configured for terminal. On the panel, can you right-click and open the "Panel Settings"-dialog -> Advanced. What is in the "Terminal Emulator" field? Try changing that.

     
  • Excellent thanks! It was "lxterminal -e". I changed it to "lxterminal" and now it works perfectly! Thanks again!

     
    • status: open --> closed
    • Group: --> -