Fix bug #46 (icons on Linux)

This commit is contained in:
Felix Kauselmann 2017-09-25 16:31:51 +02:00
parent c26e1442bf
commit f6382666b6
6 changed files with 10 additions and 14 deletions

View File

@ -3,7 +3,7 @@ Name=YACReader
GenericName=Yet Another Comic Reader GenericName=Yet Another Comic Reader
Comment=A comic reader with support for .cb*, .pdf and whole directories. Comment=A comic reader with support for .cb*, .pdf and whole directories.
Exec=YACReader %f Exec=YACReader %f
Icon=/usr/share/yacreader/icon.png Icon=YACReader
Terminal=false Terminal=false
Type=Application Type=Application
StartupNotify=true StartupNotify=true

View File

@ -245,15 +245,12 @@ docs.path = $$DATADIR/doc/yacreader
docs.extra = cp ../README.txt ../README docs.extra = cp ../README.txt ../README
docs.files = ../README ../CHANGELOG.md docs.files = ../README ../CHANGELOG.md
icon.path = $$DATADIR/yacreader icon.path = $$DATADIR/icons/hicolor/48x48/apps
icon.files = ../images/icon.png icon.files = ../YACReader.png
desktop.path = $$DATADIR/applications desktop.path = $$DATADIR/applications
desktop.extra = desktop-file-edit --set-icon=$$DATADIR/yacreader/icon.png ../YACReader.desktop
desktop.files = ../YACReader.desktop desktop.files = ../YACReader.desktop
#TODO: icons should be located at /usr/share/icons and have the same basename as their application
translation.path = $$DATADIR/yacreader/languages translation.path = $$DATADIR/yacreader/languages
translation.files = ../release/languages/yacreader_* translation.files = ../release/languages/yacreader_*

View File

@ -3,7 +3,7 @@ Name=YACReader Library
GenericName=Yet Another Comic Reader - Library GenericName=Yet Another Comic Reader - Library
Comment=A comic library management application with server mode. Comment=A comic library management application with server mode.
Exec=YACReaderLibrary %f Exec=YACReaderLibrary %f
Icon=/usr/share/yacreader/iconLibrary.png Icon=YACReaderLibrary
Terminal=false Terminal=false
Type=Application Type=Application
StartupNotify=true StartupNotify=true

View File

@ -313,11 +313,10 @@ isEmpty(DESTDIR) {
server.path = $$DATADIR/yacreader server.path = $$DATADIR/yacreader
server.files = ../release/server server.files = ../release/server
icon.path = $$DATADIR/yacreader icon.path = $$DATADIR/icons/hicolor/48x48/apps
icon.files = ../images/iconLibrary.png ../images/db.png ../images/coversPackage.png icon.files = ../YACReaderLibrary.png
desktop.path = $$DATADIR/applications desktop.path = $$DATADIR/applications
desktop.extra = desktop-file-edit --set-icon=$$DATADIR/yacreader/iconLibrary.png $$PWD/../YACReaderLibrary.desktop
desktop.files = ../YACReaderLibrary.desktop desktop.files = ../YACReaderLibrary.desktop
#TODO: icons should be located at /usr/share/icons and have the same basename as their application #TODO: icons should be located at /usr/share/icons and have the same basename as their application

BIN
images/YACReader.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
images/YACReaderLibrary.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB