From 9049d348984f9f13ae9b6d8584beab8c38d654d3 Mon Sep 17 00:00:00 2001 From: Dummerle Date: Tue, 18 May 2021 17:07:39 +0200 Subject: [PATCH] Fix bug with linux startmenu links --- rare/utils/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rare/utils/utils.py b/rare/utils/utils.py index e1c984a4..c660ac18 100644 --- a/rare/utils/utils.py +++ b/rare/utils/utils.py @@ -175,7 +175,8 @@ def create_desktop_link(app_name, core: LegendaryCore, type_of_link="desktop"): "Terminal=false\n" "StartupWMClass=rare-game\n" ) - os.chmod(os.path.expanduser(f"~/Desktop/{igame.title}.desktop"), 0o755) + desktop_file.close() + os.chmod(os.path.expanduser(f"{path}{igame.title}.desktop"), 0o755) # Windows elif os.name == "nt":