gillescastel / inkscape-shortcut-manager

Inkscape shorcut manager
MIT License
360 stars 98 forks source link

Setup with systemd #24

Open albertlunde123 opened 3 years ago

albertlunde123 commented 3 years ago

Hello!

This is not an issue as such, but rather something I am trying to setup but without success. I am trying to use systemd, to have the program run automatically on startup.

I have a inkscape.service file with the following contents.

[Unit] Description=inkscape-shortcut-manager After=multi-user.target Conflicts=getty@tty1.service `[Service]` `Type=simple` `ExecStart=/usr/bin/python3` /home/[USER]/inkscape-shortcut-manager/main.py `StandardInput=tty-force` [Install] WantedBy=multi-user.target ` I then run,

sudo systemctl enable inkscape.service sudo systemctl start inkscape-service

But when I run,

sudo systemctl status inkscape.service

I get the following error,

`` Loaded: loaded (/lib/systemd/system/inkscape.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2021-07-19 22:00:15 CEST; 15s ago Process: 29376 ExecStart=/usr/bin/python3 /home/[USER]/inkscape-shortcut-manager/main.py (code=exited, status=1/FAILURE) Main PID: 29376 (code=exited, status=1/FAILURE)

Jul 19 22:00:14 [USER] systemd[1]: Started inkscape-shortcut-manager. Jul 19 22:00:15 [USER] systemd[1]: inkscape.service: Main process exited, code=exited, status=1/FAILURE Jul 19 22:00:15 [USER] systemd[1]: inkscape.service: Failed with result 'exit-code'.

I have no clue how to solve this... I am aware that this is not a problem with your program, but I am hoping that you might be able to help me. If not, then feel free to remove the issue.

Cheers!