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:
+7
-1
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user