Answer the question
In order to leave comments, you need to log in
Why doesn't keyring retrieve the password (None) when running the app as a service (systemd)?
When running the application from the console, the code is:
import getpass
import keyring
psw = keyring.get_password(SERVICE_NAME, getpass.getuser())
[Unit]
Description=XXXapp
[Service]
User=developer
Group=developer
ExecStart= /bin/bash -c 'python3 /home/developer/project/XXXapp.py'
[Install]
WantedBy=multi-user.target
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question