Page 1 of 1

problem starting console apps from .desktop

Posted: Thu Apr 01, 2010 11:34 am
by bmarkus
Placing a .destop file in ~/Desktop for a command line program like below it appears on the desktop but nothing happens when clicked.
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=top
Comment=
Categories=Application;
Exec=top
Icon=dialog-warning
Terminal=true
StartupNotify=false
Same .desktop file in .../share/applications appears in the menu and works as expected. Using

Exec=lxterminal -e top

solves the problem. It looks like Terminal=true is ignored for some reason.

Any idea, why it behaves differently at different locations and how to fix it?

It is LXDE running on Tiny Core Linux 2.10 Non-cli applications are fine.

Thanks... Béla

Re: problem starting console apps from .desktop

Posted: Thu Apr 01, 2010 11:05 pm
by aus9
1) It is not just TinyCore....I can confirm same issue exists on a Debian system

and

2)

This icon works where IMHO it should not?

[Desktop Entry]
Name=Root Terminal
Comment=Opens a terminal as the root user, using gksu to ask for the password
Encoding=UTF-8
Exec=gksu /usr/bin/x-terminal-emulator
Icon=gksu-root-terminal
StartupNotify=true
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=GTK;Utility;TerminalEmulator;


I am referring to terminal = false....but terminal opens after inputting root passwd

regards

Re: problem starting console apps from .desktop

Posted: Thu Apr 01, 2010 11:47 pm
by rockdoctor
dup (and badly-formatted at that) see next post

Re: problem starting console apps from .desktop

Posted: Thu Apr 01, 2010 11:49 pm
by rockdoctor
Similar (but possibly not identical) to a problem I'm having launching xkill. Here is my xkill.desktop file
(from ~/.local/share/applications/)

Code: Select all

[Desktop Entry]
Version=1.0
Name=xkill
Comment=Forcibly close an open window on the desktop
Exec=/usr/bin/xkill
Icon=/usr/share/pixmaps/comps/sugar-desktop.png
StartupNotify=false
Type=Application
Categories=Utility;GTK;
xkill shows up in the system menu - I click on the menu entry, and the program executes.

I created a new application launch bar for the right panel and placed added xkill.desktop and conky.desktop (also located in ~/.local/share/applications/). Clicking on the conky icon launches conky properly. Clicking on the xkill icon doesn't do anything.

Placing the xkill.desktop file in ~/Desktop/, double-clicking does nothing, but right-clicking and selecting open causes xkill to execute.