Is it possible to have deluged run as a non-root user with your addon? With deluge you can run arbitrary code, such as on torrent completion or other events, so I'd rather not have it as root user. I tried adding User=nobody under the [Service] section of ~/.kodi/addons/service.deluge/system.d/service.deluged.service but I get the following error when I run systemctl status service.deluged :
[ERROR ] 00:58:25 rpcserver:378 [('system library', 'fopen', 'Permission denied'), ('BIO routines', 'FILE_CTRL', 'system lib'), ('SSL routines', 'SSL_CTX_use_certificat
e_file', 'system lib')]
Additionally, I can't get the inbuilt execute plugin working for deluge. Looking at the debug log, it says "Execute script not found or not executable". I've tried running the exact commands I put in deluge in the shell and they work fine. Also, it seems to only try to execute torrent removal commands. I can't find mention of add or complete in the log when I have them and they should be happening.