fix wayland icon by matching desktop file with window class (#257)

This commit is contained in:
Cyano Hao 2024-03-10 08:04:41 +08:00 committed by GitHub
parent 0e5d666c67
commit 0328a36893
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 9 additions and 9 deletions

2
.gitattributes vendored
View File

@ -21,7 +21,7 @@
/packages/debian/control eol=lf
/packages/debian/copyright eol=lf
/platform/linux/install.sh eol=lf
/platform/linux/redpandaide.desktop.in eol=lf
/platform/linux/RedPandaIDE.desktop.in eol=lf
/platform/linux/redpandaide.svg eol=lf
/platform/linux/templates/*/*.txt eol=lf
/platform/linux/templates/*/*.template eol=lf

View File

@ -43,7 +43,7 @@ unix:!macos: {
LIBEXECDIR = $${PREFIX}/libexec
}
QMAKE_SUBSTITUTES += platform/linux/redpandaide.desktop.in
QMAKE_SUBSTITUTES += platform/linux/RedPandaIDE.desktop.in
resources.path = $${PREFIX}/share/$${APP_NAME}
resources.files += platform/linux/templates
@ -60,7 +60,7 @@ unix:!macos: {
INSTALLS += xdgicons
desktop.path = $${PREFIX}/share/applications
desktop.files += platform/linux/redpandaide.desktop
desktop.files += platform/linux/RedPandaIDE.desktop
INSTALLS += desktop
mime.path = $${PREFIX}/share/mime/packages

View File

@ -29,7 +29,7 @@ rm /RedPandaIDE.AppDir/usr/libexec/RedPandaCPP/redpanda-git-askpass
# setup AppImage resource
cd /RedPandaIDE.AppDir
ln -s usr/share/applications/redpandaide.desktop redpandaide.desktop
ln -s usr/share/applications/RedPandaIDE.desktop RedPandaIDE.desktop
ln -s usr/share/icons/hicolor/scalable/apps/redpandaide.svg redpandaide.svg
# following files may come from Windows filesystem, use `install` to preseve file permission
install -m755 "$SRC_DIR/packages/appimage/AppRun.sh" AppRun

View File

@ -39,7 +39,7 @@ make INSTALL_ROOT="%{buildroot}" install
/usr/libexec/RedPandaCPP/*
/usr/share/RedPandaCPP/*
/usr/share/doc/RedPandaCPP/*
/usr/share/applications/redpandaide.desktop
/usr/share/applications/RedPandaIDE.desktop
/usr/share/icons/hicolor/scalable/apps/redpandaide.svg
/usr/share/mime/packages/redpandaide.xml

View File

@ -39,7 +39,7 @@ make INSTALL_ROOT="%{buildroot}" install
/usr/libexec/RedPandaCPP/*
/usr/share/RedPandaCPP/*
/usr/share/doc/RedPandaCPP/*
/usr/share/applications/redpandaide.desktop
/usr/share/applications/RedPandaIDE.desktop
/usr/share/icons/hicolor/scalable/apps/redpandaide.svg
/usr/share/mime/packages/redpandaide.xml

View File

@ -1,6 +1,6 @@
#!/bin/sh
echo Copying desktop files...
sudo cp -f /opt/RedPandaIDE/redpandaide.desktop /usr/share/applications
sudo cp -f /opt/RedPandaIDE/RedPandaIDE.desktop /usr/share/applications
echo Done!

View File

@ -230,13 +230,13 @@ target("resources")
-- desktop entry
if is_xdg() then
add_configfiles("platform/linux/redpandaide.desktop.in", {
add_configfiles("platform/linux/RedPandaIDE.desktop.in", {
pattern = "$${(.-)}",
variables = {
PREFIX = get_config("prefix"),
},
})
add_installfiles("$(buildir)/redpandaide.desktop", {prefixdir = "$(prefix)/share/applications"})
add_installfiles("$(buildir)/RedPandaIDE.desktop", {prefixdir = "$(prefix)/share/applications"})
end
-- mime type