Currently i am working on a little application which deals with the pyperclip module.
First of all, my setup:
ubuntu 16.04 | python3 | pyperclip 1.6.0 (newest! 2017-11-08)
Situation 1:
When i run my python script directly:
python3 app.py
it all works fine!
Situation 2:
When i first build my app via pyinstaller and after run the app:
pyinstaller --onefile --name app app.py
./app
it all works fine!
Situation 3:
When i build my app and run it via systemd:
[Unit]
After=network.target
[Service]
ExecStart=/absolute/path/to/executable
[Install]
WantedBy=multi-user.target
i start the new service and check logs via journalctl, i get:
pyperclip.PyperclipException pyperclip could not find a copy/paste mechanism for your system
Soooo.. i know there are some issues for linux user and i exactly followed instruction and installed all missing modules:
sudo apt-get install xclip xsel -y
Issue still remaining...
Can anybody explain why i can run my executable directly in terminal but not via systemd?
Thanks and Greetings!