From 2611c6dcb64efabbd36c4925175c1533aeddb51e Mon Sep 17 00:00:00 2001 From: "Clayton G. Hobbs" Date: Sun, 15 May 2016 00:03:29 -0400 Subject: Install systemd unit file from setup.py Now distributions created from setup.py put the systemd unit file in the correct location for units provided by packages. It may then be enabled and started by the user with systemctl. Closes #11. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 444eaf0..34ba60c 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,8 @@ setup( install_requires=["requests"], data_files = [ ("/usr/share/kaylee", ["data/icon_inactive.png", "data/icon.png", - "options.json.tmp"]) + "options.json.tmp"]), + ("/usr/lib/systemd/user", ["systemd/kaylee.service"]) ], entry_points = { "console_scripts": [ -- cgit 1.4.1