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
+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)