{"action":"created","issue":{"url":"https://api.github.com/repos/SamSchott/maestral-dropbox/issues/34","repository_url":"https://api.github.com/repos/SamSchott/maestral-dropbox","labels_url":"https://api.github.com/repos/SamSchott/maestral-dropbox/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/SamSchott/maestral-dropbox/issues/34/comments","events_url":"https://api.github.com/repos/SamSchott/maestral-dropbox/issues/34/events","html_url":"https://github.com/SamSchott/maestral-dropbox/issues/34","id":477706800,"node_id":"MDU6SXNzdWU0Nzc3MDY4MDA=","number":34,"title":"Doesn't find configuration if run under systemd","user":{"login":"peterhoeg","id":722550,"node_id":"MDQ6VXNlcjcyMjU1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/722550?v=4","gravatar_id":"","url":"https://api.github.com/users/peterhoeg","html_url":"https://github.com/peterhoeg","followers_url":"https://api.github.com/users/peterhoeg/followers","following_url":"https://api.github.com/users/peterhoeg/following{/other_user}","gists_url":"https://api.github.com/users/peterhoeg/gists{/gist_id}","starred_url":"https://api.github.com/users/peterhoeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterhoeg/subscriptions","organizations_url":"https://api.github.com/users/peterhoeg/orgs","repos_url":"https://api.github.com/users/peterhoeg/repos","events_url":"https://api.github.com/users/peterhoeg/events{/privacy}","received_events_url":"https://api.github.com/users/peterhoeg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-08-07T04:54:23Z","updated_at":"2019-09-11T06:36:16Z","closed_at":null,"author_association":"NONE","body":"Installing from github (I'm packing it for NixOS), I am able to launch both the cli and gui applications and sync succesfully without any problems.\r\n\r\nHowever, if I try running ```maestral sync``` from a systemd user service, it keeps prompting to go through the authorization process, so I am guessing that due to the different environment exposed to the systemd service, it is not able to find its configuration:\r\n```\r\nAug 07 12:50:11 mildred maestral[435329]: Warning: PyQt5 is required to run the Maestral GUI. Run `pip install pyqt5` to install it.\r\nAug 07 12:50:11 mildred maestral[435329]: 1. Go to: https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=oht3qeriq0h97xc\r\nAug 07 12:50:11 mildred maestral[435329]: 2. Click \"Allow\" (you might have to log in first).\r\nAug 07 12:50:11 mildred maestral[435329]: 3. Copy the authorization code.\r\nAug 07 12:50:11 mildred maestral[435329]: Enter the authorization code here:\r\nAug 07 12:50:11 mildred maestral[435329]: Aborted!\r\n```\r\n\r\nI am setting both HOME, DROPBOX_API_KEY and DROPBOX_API_SECRET in the systemd environment.\r\n\r\n```ini\r\n[Unit]\r\nDescription=Maestral - a Dropbox clone\r\n\r\n[Service]\r\nEnvironment=\"HOME=%h\"\r\nEnvironment=\"LOCALE_ARCHIVE=/nix/store/aqyxqxbxv1pcc52j71ba6jlzdyhgy5d3-glibc-locales-2.27/lib/locale/locale-archive\"\r\nEnvironment=\"PATH=/nix/store/k8lhqzpaaymshchz8ky3z4653h4kln9d-coreutils-8.31/bin:/nix/store/gjh3a8hqic3bqc2xzj8g2qxwz81wfjxx-findutils-4.6.0/bin:/nix/store/agcay3wmf74qinwshnjqy73w8rxf82hs-gnugrep-3.3/bin:/nix/store/vnyd3wh5i5kj66n9c5b8shzxjjrw22cn-gnused-4.7/bin:/nix/store/md7jdq475ij8cpifxb5rrh7y51qrfypq-systemd-242/bin:/nix/store/k8lhqzpaaymshchz8ky3z4653h4kln9d-coreutils-8.31/sbin:/nix/store/gjh3a8hqic3bqc2xzj8g2qxwz81wfjxx-findutils-4.6.0/sbin:/nix/store/agcay3wmf74qinwshnjqy73w8rxf82hs-gnugrep-3.3/sbin:/nix/store/vnyd3wh5i5kj66n9c5b8shzxjjrw22cn-gnused-4.7/sbin:/nix/store/md7jdq475ij8cpifxb5rrh7y51qrfypq-systemd-242/sbin\"\r\nEnvironment=\"QML2_IMPORT_PATH=/nix/store/qa3faa7dy41wxd1y2ldmg5fzc3pdwb10-qtbase-5.12.0-bin/lib/qt-5.12/qml\"\r\nEnvironment=\"QT_PLUGIN_PATH=/nix/store/qa3faa7dy41wxd1y2ldmg5fzc3pdwb10-qtbase-5.12.0-bin/lib/qt-5.12/plugins\"\r\nEnvironment=\"TZDIR=/nix/store/fsfddn3jj009rgy80fdv50lq13sp1p73-tzdata-2019a/share/zoneinfo\"\r\nEnvironmentFile=%t/keys/maestral\r\nExecStart=/nix/store/cmd69mskpzvp3adbgkhpl49bci65lrkb-maestral-0.2.4/bin/maestral sync\r\nNice=10\r\nRestart=on-failure\r\n```"},"comment":{"url":"https://api.github.com/repos/SamSchott/maestral-dropbox/issues/comments/530243067","html_url":"https://github.com/SamSchott/maestral-dropbox/issues/34#issuecomment-530243067","issue_url":"https://api.github.com/repos/SamSchott/maestral-dropbox/issues/34","id":530243067,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMDI0MzA2Nw==","user":{"login":"peterhoeg","id":722550,"node_id":"MDQ6VXNlcjcyMjU1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/722550?v=4","gravatar_id":"","url":"https://api.github.com/users/peterhoeg","html_url":"https://github.com/peterhoeg","followers_url":"https://api.github.com/users/peterhoeg/followers","following_url":"https://api.github.com/users/peterhoeg/following{/other_user}","gists_url":"https://api.github.com/users/peterhoeg/gists{/gist_id}","starred_url":"https://api.github.com/users/peterhoeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterhoeg/subscriptions","organizations_url":"https://api.github.com/users/peterhoeg/orgs","repos_url":"https://api.github.com/users/peterhoeg/repos","events_url":"https://api.github.com/users/peterhoeg/events{/privacy}","received_events_url":"https://api.github.com/users/peterhoeg/received_events","type":"User","site_admin":false},"created_at":"2019-09-11T06:36:16Z","updated_at":"2019-09-11T06:36:16Z","author_association":"NONE","body":"Running this under KDE on NixOS where the python keyring module didn't bring in ```dbus-python``` so there was no way for it to communicate with kwallet.\r\n\r\nAfter I fixed that, things have now started working properly and the password is stored in kwallet.\r\n\r\nRef: https://github.com/NixOS/nixpkgs/pull/68478"}}
{"actor":{"display_login":"peterhoeg"}}