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:
+10
@@ -0,0 +1,10 @@
|
|||||||
|
# Python
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
|
||||||
|
# makepkg build artifacts
|
||||||
|
pkg/
|
||||||
|
src/
|
||||||
|
steam-dice/
|
||||||
|
*.pkg.tar.zst
|
||||||
|
*.pkg.tar.zst.sig
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Mollusk <silvernode@gmail.com>
|
# Maintainer: Mollusk <silvernode@gmail.com>
|
||||||
pkgname=steam-dice-git
|
pkgname=steam-dice-git
|
||||||
_pkgname=steam-dice
|
_pkgname=steam-dice
|
||||||
pkgver=r0.0000000
|
pkgver=r17.be764eb
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A PyQt6 desktop app that picks a random game from your Steam library"
|
pkgdesc="A PyQt6 desktop app that picks a random game from your Steam library"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
@@ -22,8 +22,10 @@ pkgver() {
|
|||||||
package() {
|
package() {
|
||||||
cd "$_pkgname"
|
cd "$_pkgname"
|
||||||
install -Dm755 steam_dice.py "$pkgdir/usr/bin/steam-dice"
|
install -Dm755 steam_dice.py "$pkgdir/usr/bin/steam-dice"
|
||||||
install -Dm644 steam-dice.desktop "$pkgdir/usr/share/applications/steam-dice.desktop"
|
install -Dm644 io.github.silvernode.SteamDice.desktop \
|
||||||
install -Dm644 steam-dice.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/steam-dice.svg"
|
"$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 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
|
||||||
install -Dm644 README.md "$pkgdir/usr/share/doc/$_pkgname/README.md"
|
install -Dm644 README.md "$pkgdir/usr/share/doc/$_pkgname/README.md"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ Name=Steam Dice
|
|||||||
GenericName=Random Game Picker
|
GenericName=Random Game Picker
|
||||||
Comment=Pick a random game from your Steam library
|
Comment=Pick a random game from your Steam library
|
||||||
Exec=steam-dice
|
Exec=steam-dice
|
||||||
Icon=steam-dice
|
Icon=io.github.silvernode.SteamDice
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Game;
|
Categories=Game;
|
||||||
Keywords=steam;dice;random;game;launcher;
|
Keywords=steam;dice;random;game;launcher;
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
StartupWMClass=steam-dice
|
StartupWMClass=io.github.silvernode.SteamDice
|
||||||
|
Before Width: | Height: | Size: 857 B After Width: | Height: | Size: 857 B |
+6
-3
@@ -572,10 +572,13 @@ class SteamDice(QMainWindow):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
app.setDesktopFileName("steam-dice")
|
app.setDesktopFileName("io.github.silvernode.SteamDice")
|
||||||
icon = QIcon.fromTheme("steam-dice")
|
icon = QIcon.fromTheme("io.github.silvernode.SteamDice")
|
||||||
if icon.isNull():
|
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):
|
if os.path.exists(local_icon):
|
||||||
icon = QIcon(local_icon)
|
icon = QIcon(local_icon)
|
||||||
app.setWindowIcon(icon)
|
app.setWindowIcon(icon)
|
||||||
|
|||||||
Reference in New Issue
Block a user