Pārlūkot izejas kodu

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.
Clara Hobbs 8 gadus atpakaļ
vecāks
revīzija
2611c6dcb6
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      setup.py

+ 2
- 1
setup.py Parādīt failu

@@ -28,7 +28,8 @@ setup(
28 28
     install_requires=["requests"],
29 29
     data_files = [
30 30
         ("/usr/share/kaylee", ["data/icon_inactive.png", "data/icon.png",
31
-            "options.json.tmp"])
31
+            "options.json.tmp"]),
32
+        ("/usr/lib/systemd/user", ["systemd/kaylee.service"])
32 33
     ],
33 34
     entry_points = {
34 35
         "console_scripts": [

Notiek ielāde…
Atcelt
Saglabāt