game: fix icon paths
authorNiki Roo <niki@nikiroo.be>
Thu, 27 Mar 2025 21:04:37 +0000 (22:04 +0100)
committerNiki Roo <niki@nikiroo.be>
Thu, 27 Mar 2025 21:04:37 +0000 (22:04 +0100)
gamiki/game.py

index 2aa49eb6e79735e6598027d39759e7029250dde1..26132ef979cd743d162eafa9c2b7a30a869fb55e 100644 (file)
@@ -72,8 +72,8 @@ class Game(dict):
         
         for dir in [ 
                 self.dir, 
-                PurePath("$HOME/.pixmaps"), 
-                PurePath("$HOME/.pixmaps/games")
+                PurePath(Path.home(), ".pixmaps"),
+                PurePath(Path.home(), ".pixmaps/games")
             ]:
             if (suffix == "-icon"):
                 maybe = Path(dir, self.get("Icon", self.dir.name) + ".ico")