LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 12-02-2004, 05:12 AM   #1
oingram
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, 06:45 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
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
--Ian
 
Old 12-02-2004, 08:11 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

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:

Code:
[Desktop Entry]
Comment=
Comment[de]=
Encoding=UTF-8
Exec=/usr/local/bin/yourcommand
GenericName=
GenericName[de]=
Icon=exec
MimeType=
Name=whatever
Name[de]=wasauchimmer
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=
This is located in /home/<user>/Desktop and called <name>.desktop
 
Old 12-02-2004, 10:18 AM   #4
kadhan
Member
 
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, 10:58 AM   #5
oingram
LQ Newbie
 
Registered: Sep 2002
Distribution: SuSE
Posts: 17

Original Poster
Rep: Reputation: 0
Question

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, 11:17 AM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

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, 03:39 AM   #7
NewToLinux2005
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Javascript Desktop Icon gothrog Linux - Software 2 10-14-2004 05:15 PM
How does one creating printer icon on the desktop... SuSe/KDE? pwillikers Linux - Newbie 1 10-12-2004 06:39 PM
Creating a desktop icon for Azureus Scorpio Linux - Newbie 24 05-24-2004 10:16 AM
Creating Desktop Icon biggiefatts Linux - Software 4 05-27-2002 12:46 AM
Creating Desktop Program Icon ss109 Linux - General 4 03-15-2002 11:26 AM


All times are GMT -5. The time now is 03:22 PM.

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