Skip to content

Commit

Permalink
Install icon into /usr/share/pixmaps
Browse files Browse the repository at this point in the history
With this commit, the desktop file icon path will no longer be
hardcoded. This should conform to the requirement of Desktop
Entry Specification as released by freedesktop.org.

What's more, any third-party icon themes can now override default
nixnote2 icon through the mechanics described by the Specification
to alter the icon show on DE menu to fit their need.
  • Loading branch information
hosiet committed Feb 13, 2017
1 parent 3ced195 commit a26e73f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion NixNote2.pro
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,11 @@ translations.files = translations/*
qss.path = /usr/share/nixnote2/qss
qss.files = qss/*

pixmap.path = /usr/share/pixmaps/
pixmap.extra = cp images/windowIcon.png images/nixnote2.png
pixmap.files = images/nixnote2.png

help.path = /usr/share/nixnote2/help
help.files = help/*

INSTALLS = binary desktop images java translations qss help
INSTALLS = binary desktop images java translations qss pixmap help
4 changes: 2 additions & 2 deletions nixnote2.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Name=NixNote2
Comment=Use with Evernote to remember everything
GenericName=Evernote-clone
Exec=nixnote2
Icon=/usr/share/nixnote2/images/windowIcon.png
Icon=nixnote2
StartupNotify=true
Terminal=false
Type=Application
Expand All @@ -13,5 +13,5 @@ Keywords=NixNote2;Text;Evernote;note;
Actions=NewNote;
[Desktop Action NewNote]
Name=New Note
Name[zh_CN]=新建笔记
Exec=nixnote2 --newNote
OnlyShowIn=Unity;

0 comments on commit a26e73f

Please sign in to comment.