fix: create Desktop path if missing

This commit is contained in:
aclist 2026-07-27 20:36:04 +09:00
parent 3b4a736ce6
commit 87e0af33cc

View File

@ -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)