0

I created a deb file for ubuntu and I can add the program under Sound & Video. But when I try to add icon for it , it show no icon image . My dbr.desktop file content is :

[Desktop Entry]
Encoding=UTF-8
_Name=Insight Daisy Book Reader
_Comment=Read Daisy Talking Books
Exec=dbr
Icon=icon32x32.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;AudioVideo;

I put the image icon32x32.png on the same level as this file . The corresponding screenshot shown below (Insight Daisy Book Reader). enter image description here

I am not included the image path not any where in configuration file.

Please advise how to add program icon image ..

Thanks Anes

Anes
  • 71
  • 1
  • 4
  • 2
    Possible duplicate of [.desktop files: how to specify the icon path](http://askubuntu.com/questions/435603/desktop-files-how-to-specify-the-icon-path) – Jacob Vlijm Mar 17 '16 at 09:34
  • As far as it comes to icons: you either use full path *and* use the extension, *or* you use one of the paths as mentioned in the link (like `/usr/share/pixmaps`) and *don't* use the extension in the `.desktop` file. – Jacob Vlijm Mar 17 '16 at 09:36
  • @JacobVlijm : Tell specific, I need to add a new icon for it. How to move that file to /usr/share/pixmaps ? if that file need xpm ? if so please share how this line : Icon=icon32x32.png , change to be? – Anes Mar 17 '16 at 09:43
  • To make a .deb installer is quite another story, and outside the scope of this question. – Jacob Vlijm Mar 17 '16 at 09:50

1 Answers1

1

I suggest you to type the location of your icon completely . Example :

Icon=/usr/share/icons/example.png

You change the word /usr/share/icons with your icon directory.

Drajat Hasan
  • 303
  • 1
  • 7