From 87e0af33cca8fb39efe244dac9aeec2c0d774fd1 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 27 Jul 2026 20:36:04 +0900 Subject: [PATCH 1/2] fix: create Desktop path if missing --- dzgui/config/freedesktop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dzgui/config/freedesktop.py b/dzgui/config/freedesktop.py index 6e4504e..bb2017f 100644 --- a/dzgui/config/freedesktop.py +++ b/dzgui/config/freedesktop.py @@ -37,7 +37,8 @@ def write_desktop_file(exe_path: Path) -> Path: def write_desktop_shortcut(desktop_file: Path) -> None: # NOTE: necessarily depends on the above (UI blocks creation without XDG entry first) - link = Path.home().joinpath(f"Desktop/{APP_NAME}.desktop") + link = Path.home().joinpath(f"Desktop/dzgui.desktop") + make_parents(link) if link.exists(): link.unlink() link.symlink_to(desktop_file) From 7c79b17fdc3f50178994458d661d422f55c9da75 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 27 Jul 2026 20:39:38 +0900 Subject: [PATCH 2/2] fix: drop f-string --- dzgui/config/freedesktop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzgui/config/freedesktop.py b/dzgui/config/freedesktop.py index bb2017f..9bccfc1 100644 --- a/dzgui/config/freedesktop.py +++ b/dzgui/config/freedesktop.py @@ -37,7 +37,7 @@ def write_desktop_file(exe_path: Path) -> Path: def write_desktop_shortcut(desktop_file: Path) -> None: # NOTE: necessarily depends on the above (UI blocks creation without XDG entry first) - link = Path.home().joinpath(f"Desktop/dzgui.desktop") + link = Path.home().joinpath("Desktop/dzgui.desktop") make_parents(link) if link.exists(): link.unlink()