LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2005, 06:35 PM   #1
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Rep: Reputation: 15
Confused about Desktop Files


This is kind of silly and petty when I think about it, but I am having trouble making a desktop link file for Azureus. The program starts by a shell script. I could easily make a link file to the desktop, but I wanted to use the .png icon file. Like I said, kind of silly.

After making the link, I renamed it to 'azureus.desktop' and was then allowed to change the icon. This put a [desktop configuration] (or something like that) into the .desktop file that identified the icon's location. The problem is that the original shell script also got this modification, making it inoperable. No matter what I change the desktop file to, the original script gets changed with it.

Any ideas, solutions, workarounds, etc. would be appreciated. Thanks.
 
Old 05-16-2005, 06:39 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Desktop files are NOT shell scripts. The easiest way to create a good desktop file is to look at a functional one and use it.
 
Old 05-16-2005, 06:49 PM   #3
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Original Poster
Rep: Reputation: 15
Sorry but....
Look for a fuctional 'what'?

I get that the destop file is not a shell script. That part of your post is clear. What I want to know is how do I make a .desktop file run a shell script that is already in existence.

Thanks for the speedy reply.
 
Old 05-16-2005, 07:00 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Code:
find / -name '*.desktop'
Depending on the software installed in your system, this will return a number of .desktop files you can open in any text editor for reference in creating yours. For example, I have the following on my system:
Code:
$ cat mozilla.desktop
[Desktop Entry]
Name=Mozilla
Comment=Web Browser
Exec=/usr/bin/mozilla
Icon=mozilla-icon.png
Terminal=0
Type=Application
Categories=Application;Network;
 
Old 05-16-2005, 07:18 PM   #5
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Original Poster
Rep: Reputation: 15
Ok. I think I got the desktop file working now.
Sadly, the script seems to have died somewhere along the line.

Thanks for all the help, Matir. I appreciate it.
 
Old 05-16-2005, 07:34 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
No problem. Good luck and let me know if you need any further help.
 
Old 05-16-2005, 08:03 PM   #7
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
There is another way - if you are using KDE.

K > Settings > Menu Editor

Select New Item from the toolbar, or Click File > New Item

A box will come up that will ask you to name the item. Name it however you want and click ok.

The item name will appear at the top right of the menu editor. In the command box, select the folder to the right and you can then browse to the script you want. This is the path. When you have what you want, click the white box to the right of the description, and it will let you select an icon, or you can select other and browse to an icon you already have in your /home directory. Save it and exit.

Click on the K again, and you will find your new item! Drag it to the desktop and select copy. All done!
 
  


Reply



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
Files in Desktop folder don't appear on Desktop hand of fate Linux - Software 3 10-04-2005 12:24 PM
IPTables: config files, scripts, saving etc...confused tarballed Linux - Security 4 12-30-2004 06:41 PM
gnome desktop files zeedoo Linux - Software 1 07-12-2004 01:47 PM
Confused about WMs and Desktop Environments CodeWarrior Linux - General 1 08-14-2003 09:28 PM
can't transfer files from CD(CD-R) to Desktop nedshred Linux - Hardware 3 09-10-2002 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration