problem starting console apps from .desktop

Please post all general support questions for LXDE here.
Locked
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

problem starting console apps from .desktop

Post 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
aus9
Posts: 35
Joined: Tue Jun 02, 2009 8:42 am
Location: Australia

Re: problem starting console apps from .desktop

Post 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
rockdoctor
Posts: 116
Joined: Tue Nov 11, 2008 4:51 pm

Re: problem starting console apps from .desktop

Post by rockdoctor »

dup (and badly-formatted at that) see next post
Last edited by rockdoctor on Thu Apr 01, 2010 11:51 pm, edited 1 time in total.
Geology - It's not rocket science, it's rock science!
rockdoctor
Posts: 116
Joined: Tue Nov 11, 2008 4:51 pm

Re: problem starting console apps from .desktop

Post 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.
Geology - It's not rocket science, it's rock science!
Locked