Add desktop integration and Arch PKGBUILD

- steam-dice.svg: flat dice icon on Steam-blue gradient
- steam-dice.desktop: launcher entry under Game category
- PKGBUILD: steam-dice-git, builds from GitHub source
- Use setDesktopFileName for correct Wayland WM_CLASS, with
  local SVG fallback when running from the source tree

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-05 16:22:50 -04:00
parent 1f828f1e1a
commit be764eb67e
4 changed files with 70 additions and 1 deletions
+7 -1
View File
@@ -572,7 +572,13 @@ class SteamDice(QMainWindow):
if __name__ == "__main__":
app = QApplication(sys.argv)
app.setWindowIcon(QIcon.fromTheme("codes.nora.gDiceRoller"))
app.setDesktopFileName("steam-dice")
icon = QIcon.fromTheme("steam-dice")
if icon.isNull():
local_icon = os.path.join(os.path.dirname(os.path.abspath(__file__)), "steam-dice.svg")
if os.path.exists(local_icon):
icon = QIcon(local_icon)
app.setWindowIcon(icon)
win = SteamDice()
win.show()
sys.exit(app.exec())