Skip to content

Commit

Permalink
[Linux] Place icons in proper dirs, according to icon size.
Browse files Browse the repository at this point in the history
Signed-off-by: Mariusz Fik <[email protected]>
  • Loading branch information
Fisiu committed Sep 5, 2015
1 parent 5d218b5 commit 507a8e0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/qnapi.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Exec=qnapi
Name=QNapi
Icon=qnapi-48
Icon=qnapi
Type=Application
Categories=AudioVideo;
Comment=Program do pobierania napisów do filmów
Expand Down
22 changes: 15 additions & 7 deletions qnapi.pro
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ macx {

unix {
INSTALL_PREFIX = /usr
DATADIR=$${INSTALL_PREFIX}/share
target.path = $${INSTALL_PREFIX}/bin
doc.path = $${INSTALL_PREFIX}/share/doc/$${TARGET}
doc.files = doc/ChangeLog \
Expand All @@ -154,17 +155,24 @@ unix {
doc/qnapi-scan.schemas
man.path = $${INSTALL_PREFIX}/share/man/man1
man.files = doc/$${TARGET}.1.gz
icons.path = $${INSTALL_PREFIX}/share/icons
icons.files = res/qnapi.png \
res/qnapi-48.png \
res/qnapi-128.png \
res/qnapi-512.png
icons16.files = res/qnapi-16.png
icons16.path = $${DATADIR}/icons/hicolor/16x16/apps/
icons22.files = res/qnapi.png
icons22.path = $${DATADIR}/icons/hicolor/22x22/apps/
icons32.files = res/qnapi-32.png
icons32.path = $${DATADIR}/icons/hicolor/32x32/apps/
icons48.files = res/qnapi-48.png
icons48.path = $${DATADIR}/icons/hicolor/42x42/apps/
icons128.files = res/qnapi-128.png
icons128.path = $${DATADIR}/icons/hicolor/128x128/apps/
icons512.files = res/qnapi-512.png
icons512.path = $${DATADIR}/icons/hicolor/512x512/apps/
INSTALLS += icons16 icons22 icons32 icons48 icons128 icons512
desktop.path = $${INSTALL_PREFIX}/share/applications
desktop.files = doc/$${TARGET}.desktop
INSTALLS = target \
INSTALLS += target \
doc \
man \
icons \
desktop
}

Expand Down

0 comments on commit 507a8e0

Please sign in to comment.