View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 07-23-2011, 07:35 PM   #1
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
[Desktop Entry]
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, 08:20 PM   #2
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,000

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

I'd put the full path to top after Exec
1 members found this post helpful.
Old 07-23-2011, 09:44 PM   #3
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.


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 01:58 PM
how do you run a program from terminal? fatbeaver Linux - Newbie 1 04-26-2006 01:41 PM
How to run MP3 file thru Terminal in K.D.E or Terminal itz2000 Linux - Newbie 5 08-04-2005 10:49 PM
any way to continue using the terminal while any program is being run? g_srinivas Linux - Newbie 6 07-20-2005 09:30 AM
How to run a program on another terminal SharpyWarpy Linux - General 2 02-10-2005 03:09 PM

All times are GMT -5. The time now is 05:49 AM.

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