1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00

Console: Minimize instead of keeping open if game is running

DesktopShortcuts: Normalize StartWMClasss with application name
This commit is contained in:
loathingKernel 2022-09-08 16:57:43 +03:00
parent afcb3f7e7a
commit 70328d6472
2 changed files with 3 additions and 2 deletions

View file

@ -128,6 +128,7 @@ class Console(QDialog):
super(Console, self).closeEvent(a0)
a0.accept()
else:
self.showMinimized()
a0.ignore()

View file

@ -222,7 +222,7 @@ def create_desktop_link(app_name=None, core: LegendaryCore = None, type_of_link=
f"Icon={os.path.join(resources_path, 'images', 'Rare.png')}\n"
f"Exec={executable}\n"
"Terminal=false\n"
"StartupWMClass=rare\n"
"StartupWMClass=Rare\n"
)
else:
with open(os.path.join(path, f"{igame.title}.desktop"), "w") as desktop_file:
@ -234,7 +234,7 @@ def create_desktop_link(app_name=None, core: LegendaryCore = None, type_of_link=
f"Icon={icon}.png\n"
f"Exec={executable} launch {app_name}\n"
"Terminal=false\n"
"StartupWMClass=rare-game\n"
"StartupWMClass=Rare\n"
)
os.chmod(os.path.join(path, f"{igame.title}.desktop"), 0o755)