fix: app icon install location and file name under Linux

This commit is contained in:
Gary Wang 2023-07-31 08:27:32 +08:00
parent 0e1ec979cf
commit d80c661c66
No known key found for this signature in database
GPG Key ID: 5D30A4F15EA78760
2 changed files with 3 additions and 3 deletions

View File

@ -210,8 +210,8 @@ elseif (UNIX)
# install icon
install (
FILES assets/icons/app-icon.svg
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/48x48/apps"
RENAME pineapple-pictures.svg
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps"
RENAME net.blumia.pineapple-pictures.svg
)
# install shortcut

View File

@ -5,7 +5,7 @@ Comment[zh_CN]=菠萝看图是一个轻量级的图像查看器
Exec=ppic %F
GenericName=Image Viewer
GenericName[zh_CN]=
Icon=pineapple-pictures
Icon=net.blumia.pineapple-pictures
Keywords=Picture;Image;Viewer;Jpg;Jpeg;Png;
MimeType=image/bmp;image/bmp24;image/jpg;image/jpe;image/jpeg;image/jpeg24;image/jng;image/pcd;image/pcx;image/png;image/tif;image/tiff;image/tiff24;image/dds;image/gif;image/sgi;image/j2k;image/jp2;image/pct;image/wdp;image/arw;image/icb;image/dng;image/vda;image/vst;image/svg;image/ptif;image/mef;image/xbm;image/svg+xml;
Name=Pineapple Pictures