From 6adbd7d2c5dad74671c2953141b3da9c7efd26db Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Sun, 28 Aug 2022 14:00:38 +0200 Subject: [PATCH] use nicer string join api --- src/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install.py b/src/install.py index ddf3dd3..e788c56 100644 --- a/src/install.py +++ b/src/install.py @@ -22,9 +22,9 @@ def _is_executable() -> bool: def _linux_install_desktop_file(): - apps_dir = Path.home().joinpath(".local").joinpath("share").joinpath("applications") + apps_dir = Path.home() / ".local" / "share" / "applications" if apps_dir.exists() and apps_dir.is_dir(): - krowlog_desktop_file = apps_dir.joinpath("krowlog.desktop") + krowlog_desktop_file = apps_dir / "krowlog.desktop" if not krowlog_desktop_file.exists(): desktop_file_data = textwrap.dedent("""[Desktop Entry] Type=Application