From 37bf1c9cc5906cb995feebe74948daaac1428dbd Mon Sep 17 00:00:00 2001 From: Mollusk Date: Tue, 5 May 2026 16:55:40 -0400 Subject: [PATCH] Rename desktop ID and icon to reverse-DNS scheme The icon name "steam-dice" triggers freedesktop's compound-name fallback: when not found, it strips "-dice" and resolves to the Steam package's icon. Switch to io.github.silvernode.SteamDice so the fallback can't collide with anything pre-existing. Also add .gitignore for makepkg build artifacts and pycache. Co-Authored-By: Claude Opus 4.7 --- .gitignore | 10 ++++++++++ PKGBUILD | 8 +++++--- ...e.desktop => io.github.silvernode.SteamDice.desktop | 4 ++-- steam-dice.svg => io.github.silvernode.SteamDice.svg | 0 steam_dice.py | 9 ++++++--- 5 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 .gitignore rename steam-dice.desktop => io.github.silvernode.SteamDice.desktop (74%) rename steam-dice.svg => io.github.silvernode.SteamDice.svg (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..54115e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Python +__pycache__/ +*.py[cod] + +# makepkg build artifacts +pkg/ +src/ +steam-dice/ +*.pkg.tar.zst +*.pkg.tar.zst.sig diff --git a/PKGBUILD b/PKGBUILD index 2ed9e9a..3b9a7e1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Mollusk pkgname=steam-dice-git _pkgname=steam-dice -pkgver=r0.0000000 +pkgver=r17.be764eb pkgrel=1 pkgdesc="A PyQt6 desktop app that picks a random game from your Steam library" arch=('any') @@ -22,8 +22,10 @@ pkgver() { package() { cd "$_pkgname" install -Dm755 steam_dice.py "$pkgdir/usr/bin/steam-dice" - install -Dm644 steam-dice.desktop "$pkgdir/usr/share/applications/steam-dice.desktop" - install -Dm644 steam-dice.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/steam-dice.svg" + install -Dm644 io.github.silvernode.SteamDice.desktop \ + "$pkgdir/usr/share/applications/io.github.silvernode.SteamDice.desktop" + install -Dm644 io.github.silvernode.SteamDice.svg \ + "$pkgdir/usr/share/icons/hicolor/scalable/apps/io.github.silvernode.SteamDice.svg" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" install -Dm644 README.md "$pkgdir/usr/share/doc/$_pkgname/README.md" } diff --git a/steam-dice.desktop b/io.github.silvernode.SteamDice.desktop similarity index 74% rename from steam-dice.desktop rename to io.github.silvernode.SteamDice.desktop index 76f9156..ae4f048 100644 --- a/steam-dice.desktop +++ b/io.github.silvernode.SteamDice.desktop @@ -4,9 +4,9 @@ Name=Steam Dice GenericName=Random Game Picker Comment=Pick a random game from your Steam library Exec=steam-dice -Icon=steam-dice +Icon=io.github.silvernode.SteamDice Terminal=false Categories=Game; Keywords=steam;dice;random;game;launcher; StartupNotify=true -StartupWMClass=steam-dice +StartupWMClass=io.github.silvernode.SteamDice diff --git a/steam-dice.svg b/io.github.silvernode.SteamDice.svg similarity index 100% rename from steam-dice.svg rename to io.github.silvernode.SteamDice.svg diff --git a/steam_dice.py b/steam_dice.py index 2963de2..3406d45 100755 --- a/steam_dice.py +++ b/steam_dice.py @@ -572,10 +572,13 @@ class SteamDice(QMainWindow): if __name__ == "__main__": app = QApplication(sys.argv) - app.setDesktopFileName("steam-dice") - icon = QIcon.fromTheme("steam-dice") + app.setDesktopFileName("io.github.silvernode.SteamDice") + icon = QIcon.fromTheme("io.github.silvernode.SteamDice") if icon.isNull(): - local_icon = os.path.join(os.path.dirname(os.path.abspath(__file__)), "steam-dice.svg") + local_icon = os.path.join( + os.path.dirname(os.path.abspath(__file__)), + "io.github.silvernode.SteamDice.svg", + ) if os.path.exists(local_icon): icon = QIcon(local_icon) app.setWindowIcon(icon)