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 <noreply@anthropic.com>
This commit is contained in:
2026-05-05 16:55:40 -04:00
parent be764eb67e
commit 37bf1c9cc5
5 changed files with 23 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
# Python
__pycache__/
*.py[cod]
# makepkg build artifacts
pkg/
src/
steam-dice/
*.pkg.tar.zst
*.pkg.tar.zst.sig
+5 -3
View File
@@ -1,7 +1,7 @@
# Maintainer: Mollusk <silvernode@gmail.com>
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"
}
@@ -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

Before

Width:  |  Height:  |  Size: 857 B

After

Width:  |  Height:  |  Size: 857 B

+6 -3
View File
@@ -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)