Skip to content

Commit

Permalink
fix install systemd service
Browse files Browse the repository at this point in the history
  • Loading branch information
vm86 committed Oct 20, 2024
1 parent 28a9d29 commit 6d80d92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@


def install() -> None:
install_system_service_path = Path.home().joinpath(
f".config/systemd/user/{SERVICE_NAME}"
)
install_system_service_path.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(
Path(f"contrib/{SERVICE_NAME}"),
Path.home().joinpath(f".config/systemd/user/{SERVICE_NAME}"),
install_system_service_path,
)
check_call(["systemctl", "daemon-reload", "--user"])
check_call(["systemctl", "enable", SERVICE_NAME, "--user"])
Expand Down

0 comments on commit 6d80d92

Please sign in to comment.