Console: Minimize instead of keeping open if game is running
DesktopShortcuts: Normalize StartWMClasss with application name
This commit is contained in:
parent
afcb3f7e7a
commit
70328d6472
|
@ -128,6 +128,7 @@ class Console(QDialog):
|
|||
super(Console, self).closeEvent(a0)
|
||||
a0.accept()
|
||||
else:
|
||||
self.showMinimized()
|
||||
a0.ignore()
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue