mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
Merge pull request #421 from aclist/fix/make-desktop
fix: create Desktop path if missing
This commit is contained in:
1 file changed
+2
-1
@@ -37,7 +37,8 @@ def write_desktop_file(exe_path: Path) -> Path:
|
|||||||
|
|
||||||
def write_desktop_shortcut(desktop_file: Path) -> None:
|
def write_desktop_shortcut(desktop_file: Path) -> None:
|
||||||
# NOTE: necessarily depends on the above (UI blocks creation without XDG entry first)
|
# 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("Desktop/dzgui.desktop")
|
||||||
|
make_parents(link)
|
||||||
if link.exists():
|
if link.exists():
|
||||||
link.unlink()
|
link.unlink()
|
||||||
link.symlink_to(desktop_file)
|
link.symlink_to(desktop_file)
|
||||||
Reference in new issue
Block a user