Skip to content

Commit a26e73f

Browse files
committed
Install icon into /usr/share/pixmaps
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.
1 parent 3ced195 commit a26e73f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

NixNote2.pro

+5-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,11 @@ translations.files = translations/*
464464
qss.path = /usr/share/nixnote2/qss
465465
qss.files = qss/*
466466

467+
pixmap.path = /usr/share/pixmaps/
468+
pixmap.extra = cp images/windowIcon.png images/nixnote2.png
469+
pixmap.files = images/nixnote2.png
470+
467471
help.path = /usr/share/nixnote2/help
468472
help.files = help/*
469473

470-
INSTALLS = binary desktop images java translations qss help
474+
INSTALLS = binary desktop images java translations qss pixmap help

nixnote2.desktop

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Name=NixNote2
33
Comment=Use with Evernote to remember everything
44
GenericName=Evernote-clone
55
Exec=nixnote2
6-
Icon=/usr/share/nixnote2/images/windowIcon.png
6+
Icon=nixnote2
77
StartupNotify=true
88
Terminal=false
99
Type=Application
@@ -13,5 +13,5 @@ Keywords=NixNote2;Text;Evernote;note;
1313
Actions=NewNote;
1414
[Desktop Action NewNote]
1515
Name=New Note
16+
Name[zh_CN]=新建笔记
1617
Exec=nixnote2 --newNote
17-
OnlyShowIn=Unity;

0 commit comments

Comments
 (0)