fix(egs): fix invalid .desktop format caused by indentation
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -395,15 +395,16 @@ class ContextMenuManager:
|
|||||||
os.makedirs(egs_desktop_dir, exist_ok=True)
|
os.makedirs(egs_desktop_dir, exist_ok=True)
|
||||||
desktop_path = self._get_egs_desktop_path(game_name)
|
desktop_path = self._get_egs_desktop_path(game_name)
|
||||||
comment = _('Launch game "{name}" with PortProton').format(name=game_name)
|
comment = _('Launch game "{name}" with PortProton').format(name=game_name)
|
||||||
desktop_entry = f"""[Desktop Entry]
|
desktop_entry =f"""\
|
||||||
Type=Application
|
[Desktop Entry]
|
||||||
Name={game_name}
|
Name={game_name}
|
||||||
Comment={comment}
|
Comment={comment}
|
||||||
Terminal=false
|
Exec="{self.legendary_path}" launch {app_name} --no-wine --wrapper "env START_FROM_STEAM=1 {wrapper}"
|
||||||
StartupNotify=true
|
Terminal=false
|
||||||
Exec="{self.legendary_path}" launch {app_name} --no-wine --wrapper "env START_FROM_STEAM=1 {wrapper}"
|
Type=Application
|
||||||
Icon={icon_path}
|
Categories=Game;
|
||||||
Categories=Game
|
StartupNotify=true
|
||||||
|
Icon={icon_path}
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
with open(desktop_path, "w", encoding="utf-8") as f:
|
with open(desktop_path, "w", encoding="utf-8") as f:
|
||||||
|
Reference in New Issue
Block a user