Skip to content

Commit

Permalink
feat: Update / Improve desktop files (#72)
Browse files Browse the repository at this point in the history
Add a Comment and Categories to desktop files + use the hicolor-icon specification for the icon
  • Loading branch information
Antiz96 authored Jan 22, 2025
1 parent 6ad2b34 commit 7d53a59
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ all:
install:
install -Dm 755 "src/${pkgname}.sh" "${DESTDIR}${PREFIX}/bin/${pkgname}"
install -Dm 644 "res/desktop/${pkgname}.desktop" "${DESTDIR}${PREFIX}/share/applications/${pkgname}.desktop"
install -Dm 644 "res/icon/${pkgname}.svg" "${DESTDIR}/usr/share/icons/${pkgname}/${pkgname}.svg"
install -Dm 664 "res/icons/${pkgname}.svg" "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${pkgname}.svg"
install -Dm 644 README.md "${DESTDIR}${PREFIX}/share/doc/${pkgname}/README.md"

install-rootless:
install -Dm 755 "src/${pkgname}_rootless.sh" "${DESTDIR}${PREFIX}/bin/${pkgname}"
install -Dm 644 "res/desktop/${pkgname}_rootless.desktop" "${DESTDIR}${PREFIX}/share/applications/${pkgname}.desktop"
install -Dm 644 "res/icon/${pkgname}.svg" "${DESTDIR}/usr/share/icons/${pkgname}/${pkgname}.svg"
install -Dm 664 "res/icons/${pkgname}.svg" "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${pkgname}.svg"
install -Dm 644 README.md "${DESTDIR}${PREFIX}/share/doc/${pkgname}/README.md"

uninstall:
rm -f "${DESTDIR}${PREFIX}/bin/${pkgname}"
rm -rf "${DESTDIR}/usr/share/icons/${pkgname}/"
rm -r "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${pkgname}.svg"
rm -f "${DESTDIR}${PREFIX}/share/applications/${pkgname}.desktop"
rm -rf "${DESTDIR}${PREFIX}/share/doc/${pkgname}/"
6 changes: 4 additions & 2 deletions res/desktop/ankama-launcher-container.desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[Desktop Entry]
Name=Ankama Launcher Container
Comment=A distrobox container to run the Ankama launcher and games
Icon=ankama-launcher-container
Type=Application
Terminal=true
Name=Ankama Launcher Container
Icon=/usr/share/icons/ankama-launcher-container/ankama-launcher-container.svg
Exec=ankama-launcher-container
Categories=Game
6 changes: 4 additions & 2 deletions res/desktop/ankama-launcher-container_rootless.desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[Desktop Entry]
Type=Application
Name=Ankama Launcher Container
Icon=/usr/share/icons/ankama-launcher-container/ankama-launcher-container.svg
Comment=A distrobox container to run the Ankama launcher and games
Icon=ankama-launcher-container
Type=Application
Exec=ankama-launcher-container
Categories=Game
6 changes: 4 additions & 2 deletions res/desktop/ankama-launcher-container_steamos.desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[Desktop Entry]
Type=Application
Name=Ankama Launcher Container
Comment=A distrobox container to run the Ankama launcher and games
Icon=/home/deck/.local/share/icons/ankama-launcher-container/ankama-launcher-container.svg
Exec=bash -c 'export PATH="$HOME/.local/bin:$HOME/.local/podman/bin:$PATH" && ankama-launcher-container'
Type=Application
Exec=bash -c 'PATH="$HOME/.local/bin:$HOME/.local/podman/bin:$PATH" && ankama-launcher-container'
Categories=Game
File renamed without changes

0 comments on commit 7d53a59

Please sign in to comment.