LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 07-23-2011, 06:35 PM   #1
gqqnbig
LQ Newbie
 
Registered: Apr 2011
Posts: 12

Rep: Reputation: 1
Question Run terminal program from desktop file in LXDE?


I use ubuntu 11.04.
I have test.desktop file in ~/desktop, whose content is
Code:
[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?
 
Old 07-23-2011, 07:20 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,625

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Desktop links with LXDE, not sure if this is what you want?:

http://linux.koolsolutions.com/2009/...-lxde-desktop/

I'd put the full path to top after Exec
 
1 members found this post helpful.
Old 07-23-2011, 08:44 PM   #3
gqqnbig
LQ Newbie
 
Registered: Apr 2011
Posts: 12

Original Poster
Rep: Reputation: 1
Wow,it works. I don't know lxterminal has an option for me to specify a program to run. I only checked lxterminal --help, not man.

But I hope there's a better solution since this solution relies on lxterminal and if all command line programs have to start in such a way, the existance of terminal key doesn't make sence. If I change the default emulator or even delete it, the modification of the desktop file is needed. It is not as elastic as it works in gnome.
 
  


Reply

Tags
launcher, lxde, terminal


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lxde desktop program links mark_alfred Linux - Desktop 4 12-22-2009 12:58 PM
how do you run a program from terminal? fatbeaver Linux - Newbie 1 04-26-2006 12:41 PM
How to run MP3 file thru Terminal in K.D.E or Terminal itz2000 Linux - Newbie 5 08-04-2005 09:49 PM
any way to continue using the terminal while any program is being run? g_srinivas Linux - Newbie 6 07-20-2005 08:30 AM
How to run a program on another terminal SharpyWarpy Linux - General 2 02-10-2005 02:09 PM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration