9
[Desktop Entry]
Version=1.0
Name=Event Manager
Exec=python3 /media/PRIVATE/Document/Python/Reminder\ ver\ 2/Gui.py
Icon="/home/dtoan/Pictures/book Reader.png"
Terminal=false
Type=Application
Categories=Utility;

This is my .desktop file that I created. But in dash, it shows a default icon instead of my png image. I'm sure the path is correct. Any idea?

4
  • 1
    Remove the quotes. Unlike the Exec= line, spaces are not an issue. Jul 3, 2017 at 13:04
  • I did it already, but because of low reputation or whatever, it doesn't show. Jul 4, 2017 at 16:14
  • Haha, thanks, but I think you upovoted :). Accepting is ticking the big V. The green mark then appears, no matter your reputation. Don't worry, thanks anyway. Jul 4, 2017 at 16:17
  • Reviewers: This is not off-topic. This is about a syntax error arising from the original poster not knowing what syntax to use, not a typo. It can continue helping other users and, judging by the number of votes on the question and answer, probably already has helped many. Jul 24, 2017 at 17:21

1 Answer 1

13

Short answer:

Remove the quotes in:

Icon="/home/dtoan/Pictures/book Reader.png"

Unlike the Exec= line, spaces should be left alone in the Icon= line.

Apart from everything, I wouldn't use spaces in a name in general.

1
  • 2
    Omg, thank you very much. Can't believe this tiny problem took me hours. Jul 3, 2017 at 13:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .