Page 1 of 1

Run terminal program from desktop file on desktop?

Posted: Sat Jul 23, 2011 2:05 pm
by gqqnbig
I have test.desktop file in ~/desktop, whose content is

Code: Select all

[Desktop Entry]
Categories=;
Comment[zh_CN]=
Encoding=UTF-8
Exec=top
Icon=gnome-panel-launcher
Name=top
Terminal=true
Type=Application
Version=1.0
Obviously, I'd like to have an icon on my desktop, double-click the icon, a terminal emulator opens and the top program runs in it.
However, in LXDE it doesn't work! A terminal emulator opens but only shows the command prompt, without running any programs.

Indeed, the test.desktop was created by launcher creator in gnome and the file works perfectly in gnome. When it comes to LXDE, are some modifications needed?

Re: Run terminal program from desktop file on desktop?

Posted: Sun Jul 24, 2011 1:34 am
by rockdoctor

Code: Select all

[Desktop Entry]
Categories=;
Comment[zh_CN]=
Encoding=UTF-8
Exec=lxterminal -e top
Icon=gnome-panel-launcher
Name=top
Type=Application
Version=1.0