Run terminal program from desktop file on desktop?

Please post all general support questions for LXDE here.
Locked
gqqnbig
Posts: 3
Joined: Tue Jul 12, 2011 12:53 am

Run terminal program from desktop file on desktop?

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

Re: Run terminal program from desktop file on desktop?

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