Register a domain and help support LQ
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 04-07-2011, 02:20 AM   #1
LQ Newbie
Registered: Apr 2011
Location: Delhi
Distribution: RHEL
Posts: 3

Rep: Reputation: 0
How to create a shortcut of a application with a icon using command line in RHEL

Hi all,
Can anyone please give the command to create a shortcut of a application along with a icon, instead of creating a softlink to it.

e.g i want to create the shortcut of eclipse in my desktop

Thanks in advance
Old 04-07-2011, 02:29 AM   #2
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,892

Rep: Reputation: Disabled
???? from the command line??????

why not in gnome r-click the desktop and select " create launcher" from the menu

but from bash i suppose you could launch "vi"or "nano" and make a "*.desktop" file by hand
1 members found this post helpful.
Old 04-08-2011, 01:29 AM   #3
LQ Newbie
Registered: Apr 2011
Location: Delhi
Distribution: RHEL
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your suggestion,

I got it,by copying a .desktop file of another application and changed its contents as per my application executable and which included its path as well as its icon(from /usr/share/pixmap).
Old 04-08-2011, 02:56 AM   #4
Senior Member
Registered: Dec 2008
Posts: 4,670
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
cd Desktop
ln -s /home/yourname/path/to/dir/x .


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
how to switch to command line from GUI using keyboard shortcut tj_linux Linux - Newbie 16 05-16-2010 08:29 AM
how can i create a keyboard shortcut for a certain application i want? kublador Linux - Newbie 4 04-05-2007 09:04 AM
Command Line for creating shortcut icons indraveni Linux - General 20 05-09-2006 12:46 AM
command to create shortcut for an application in the start menu for linux neerajchaudhari Linux - Software 1 08-29-2005 04:11 AM
create a icon shortcut for my app in blackbox yenonn Linux - Software 7 08-16-2003 05:30 AM

All times are GMT -5. The time now is 09:11 PM.

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