From 1230d85fe62c67aa816d768b9bc8597c70a7fcb0 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Wed, 25 Jun 2025 10:38:57 +0500 Subject: [PATCH] fix(egs): fix invalid .desktop format caused by indentation Signed-off-by: Boris Yumankulov --- portprotonqt/context_menu_manager.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/portprotonqt/context_menu_manager.py b/portprotonqt/context_menu_manager.py index 558c743..df21416 100644 --- a/portprotonqt/context_menu_manager.py +++ b/portprotonqt/context_menu_manager.py @@ -395,15 +395,16 @@ class ContextMenuManager: os.makedirs(egs_desktop_dir, exist_ok=True) desktop_path = self._get_egs_desktop_path(game_name) comment = _('Launch game "{name}" with PortProton').format(name=game_name) - desktop_entry = f"""[Desktop Entry] - Type=Application - Name={game_name} - Comment={comment} - Terminal=false - StartupNotify=true - Exec="{self.legendary_path}" launch {app_name} --no-wine --wrapper "env START_FROM_STEAM=1 {wrapper}" - Icon={icon_path} - Categories=Game + desktop_entry =f"""\ +[Desktop Entry] +Name={game_name} +Comment={comment} +Exec="{self.legendary_path}" launch {app_name} --no-wine --wrapper "env START_FROM_STEAM=1 {wrapper}" +Terminal=false +Type=Application +Categories=Game; +StartupNotify=true +Icon={icon_path} """ try: with open(desktop_path, "w", encoding="utf-8") as f: