Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-02-2004, 06:12 AM   #1
LQ Newbie
Registered: Sep 2002
Distribution: SuSE
Posts: 17

Rep: Reputation: 0
Question creating desktop icon

I have installed a program on SuSE9.2 using configure;make;make install from a bash script.(executing rpm's etc) Now I want to go a step further and also create a desktop icon which will execute the binary file for the program. How do I do that from the bash script which installed the program?
Old 12-02-2004, 07:45 AM   #2
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
What Desktop are you using?

As far as I know, you can't create a desktop icon from the command shell. Although in gnome, they are files of the format name.desktop I think.

The best way would be to right click on the desktop and select "new launcher" The executable is the command you enter in the terminal to run the program.

I hope this helps
Old 12-02-2004, 09:11 AM   #3
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
I guess you are using KDE, since this is the default desktop on SuSE.

I am not very good at programming, but I can show you how a desktop icon looks like:

[Desktop Entry]
This is located in /home/<user>/Desktop and called <name>.desktop
Old 12-02-2004, 11:18 AM   #4
Registered: Dec 2004
Posts: 40

Rep: Reputation: 15
if u r usin kde rightclick->new->link 2 application and write ur command in execute prompt
Old 12-02-2004, 11:58 AM   #5
LQ Newbie
Registered: Sep 2002
Distribution: SuSE
Posts: 17

Original Poster
Rep: Reputation: 0

Thanks I will try it out and see if it works. I am using kde and I want to be able to run the install script (from bash) and have the script create the desktop icon. Basically it would be like installing a windows program ; they automatically put a desktop icon (shortcut ) for you with all the correct permissions so all the user has to do is click the icon to run the program.
by the way what command could I use at the end of the execution of the script that will close/kill the shell? I tried exit but it didn't work
Old 12-02-2004, 12:17 PM   #6
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Why don't you use rpm? You can run pre- and postinstall scripts on rpm. Have a look on the rpm manpages.
Old 12-31-2004, 04:39 AM   #7
LQ Newbie
Registered: Dec 2004
Distribution: Suse Linux 9.2 Pro
Posts: 27

Rep: Reputation: 15
Ok to do this with KDE, just rigth clik pick file/Link To Locaction then browse to the location of the program, hit ok. ok again. it will creat a icon that you can change by right clicking on the icon and going to properties. hope that helps.


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
Creating a Javascript Desktop Icon gothrog Linux - Software 2 10-14-2004 06:15 PM
How does one creating printer icon on the desktop... SuSe/KDE? pwillikers Linux - Newbie 1 10-12-2004 07:39 PM
Creating a desktop icon for Azureus Scorpio Linux - Newbie 24 05-24-2004 11:16 AM
Creating Desktop Icon biggiefatts Linux - Software 4 05-27-2002 01:46 AM
Creating Desktop Program Icon ss109 Linux - General 4 03-15-2002 12:26 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:39 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