LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2010, 01:50 PM   #1
Thursapr
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 44

Rep: Reputation: 18
How linux system can understand just icon-name, dont need a full path?


I am talking about .desktop files here. In many of them , the "Icon" line just contain a name, not the full path to the icon itself. For example, in /usr/share/applications/inkscape.desktop it has "Icon=inkscape", not "Icon=/usr/share/pixmaps/inkscape.png"

I want to know what is responsible for this. Because i also noticed that some .desktop file have to contain the full path to appear correctly on app menus.
 
Old 04-15-2010, 02:19 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
Part of the specification for desktop files specifies possible locations for the file. Any application which reads the dsktop files knows where these locations are and seraches them until it finds the requested icon.
 
Old 04-15-2010, 02:43 PM   #3
Thursapr
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 44

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by gnashley View Post
Part of the specification for desktop files specifies possible locations for the file. Any application which reads the dsktop files knows where these locations are and seraches them until it finds the requested icon.
Could you name some locations?

And is there a restriction on icons' file types? Or all png, svg, xpm, jpg, gif.. are valid?
 
Old 04-15-2010, 03:00 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
png, svg or xpm only.

icons are looked for first under /usr/share/icons -usually under /usr/share/icons/hicolor/48x48 -that's where png icons should be. svg icons go under /usr/share/icons/hicolor/scalable
xpm icons go under /usr/share/pixmaps
 
Old 04-15-2010, 03:31 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 231Reputation: 231Reputation: 231
You should look at the Freedesktop.org wiki which has lots of good information about this stuff.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
i dont understand why my system hangs up frequently.. haritha Linux - Newbie 2 02-06-2007 03:55 PM
really new to linux dont understand aconyms matt0474 Linux - Newbie 7 01-14-2007 04:08 PM
i got ps2 but i dont understand how to run linux over it farhan Linux - General 4 05-02-2003 01:22 PM
Things dont work when you dont understand withoutaclue Linux - Newbie 3 03-12-2003 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration