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