Bug 1167 - Desktop entry and three icons are necessary
Summary: Desktop entry and three icons are necessary
Status: ASSIGNED
Alias: None
Product: BpmDj - old linux tools
Classification: Unclassified
Component: packaging (show other bugs)
Version: 4.1
Hardware: PC Linux
: Future enhancement
Assignee: Werner Van Belle
URL:
Depends on:
Blocks:
 
Reported: 2009-12-08 20:27 CET by Werner Van Belle
Modified: 2009-12-10 15:54 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 3 Toni The Octopus 2009-12-10 15:54:52 CET
no, a desktop-file contains a single icon-line.
The icon-name without extension and path (.png is default)

normally the desktp-file is installed in /usr/share/applications. The default-icon goes to /usr/share/pixmaps.

If you provide more resolutions they are installed in 
/usr/share/icons/hicolor/<resolution>/<group>/*.png
with <resolution> = "16x16" "32x32" "48x48" "64x64" "96x96"
All icons have the same name, as the size is given in the directory name.

Group is in your case "apps". If you use a path this icon is used, if not a special algorithm is used to show the icon in other sizes.

The exec line should be normally without path.

for a detailed description of desktop files look here:
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
Comment 2 Werner Van Belle 2009-12-10 15:22:29 CET
Assuming that I have a couple of icons floating around and that I would like to create a proper bpmdj.desktop file. How do I doi that ?

Would the following work ?

[Desktop Entry]
Name=BpmDj - Free Dj Tools
Comment=See http://bpmdj.yellowcouch.org/ for more information
GenericName=BpmDj
Type=Application
Exec=/usr/bin/bpmdj
Icon= <???> bpmdj-icon-96.png
Icon= <???> bpmdj-icon-48.png
Icon= <???> bpmdj-icon-36.png
Icon= <???> bpmdj-icon-24.png
Encoding=UTF-8
Categories=AudioVideo;Player;

Would the above work ? Or is a special multi-iamge icon necessary ?

Wkr,

Werner,-
Comment 1 Werner Van Belle 2009-12-08 20:28:09 CET
resize the logo.png to 32x32, 48x48 and 64x64 or add a new bpmdj.png to use 
in the menu entries.
Description Werner Van Belle 2009-12-08 20:27:54 CET
[Desktop Entry]
Name=BpmDJ - Free Dj Tools
Comment=BpmDJ - Free Dj Tools
GenericName=BpmDJ - Free Dj Tools
Type=Application
Exec=%{name}.sh
Icon=%{name}
#Encoding=UTF-8
#Categories=AudioVideo;Player;
EOF