{"action":"created","issue":{"url":"https://api.github.com/repos/mariusor/mpris-scrobbler/issues/48","repository_url":"https://api.github.com/repos/mariusor/mpris-scrobbler","labels_url":"https://api.github.com/repos/mariusor/mpris-scrobbler/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/mariusor/mpris-scrobbler/issues/48/comments","events_url":"https://api.github.com/repos/mariusor/mpris-scrobbler/issues/48/events","html_url":"https://github.com/mariusor/mpris-scrobbler/issues/48","id":380180445,"node_id":"MDU6SXNzdWUzODAxODA0NDU=","number":48,"title":"Can't login","user":{"login":"Bergiu","id":13796963,"node_id":"MDQ6VXNlcjEzNzk2OTYz","avatar_url":"https://avatars1.githubusercontent.com/u/13796963?v=4","gravatar_id":"","url":"https://api.github.com/users/Bergiu","html_url":"https://github.com/Bergiu","followers_url":"https://api.github.com/users/Bergiu/followers","following_url":"https://api.github.com/users/Bergiu/following{/other_user}","gists_url":"https://api.github.com/users/Bergiu/gists{/gist_id}","starred_url":"https://api.github.com/users/Bergiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bergiu/subscriptions","organizations_url":"https://api.github.com/users/Bergiu/orgs","repos_url":"https://api.github.com/users/Bergiu/repos","events_url":"https://api.github.com/users/Bergiu/events{/privacy}","received_events_url":"https://api.github.com/users/Bergiu/received_events","type":"User","site_admin":false},"labels":[{"id":581645976,"node_id":"MDU6TGFiZWw1ODE2NDU5NzY=","url":"https://api.github.com/repos/mariusor/mpris-scrobbler/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"mariusor","id":7553,"node_id":"MDQ6VXNlcjc1NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/7553?v=4","gravatar_id":"","url":"https://api.github.com/users/mariusor","html_url":"https://github.com/mariusor","followers_url":"https://api.github.com/users/mariusor/followers","following_url":"https://api.github.com/users/mariusor/following{/other_user}","gists_url":"https://api.github.com/users/mariusor/gists{/gist_id}","starred_url":"https://api.github.com/users/mariusor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariusor/subscriptions","organizations_url":"https://api.github.com/users/mariusor/orgs","repos_url":"https://api.github.com/users/mariusor/repos","events_url":"https://api.github.com/users/mariusor/events{/privacy}","received_events_url":"https://api.github.com/users/mariusor/received_events","type":"User","site_admin":false},"assignees":[{"login":"mariusor","id":7553,"node_id":"MDQ6VXNlcjc1NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/7553?v=4","gravatar_id":"","url":"https://api.github.com/users/mariusor","html_url":"https://github.com/mariusor","followers_url":"https://api.github.com/users/mariusor/followers","following_url":"https://api.github.com/users/mariusor/following{/other_user}","gists_url":"https://api.github.com/users/mariusor/gists{/gist_id}","starred_url":"https://api.github.com/users/mariusor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariusor/subscriptions","organizations_url":"https://api.github.com/users/mariusor/orgs","repos_url":"https://api.github.com/users/mariusor/repos","events_url":"https://api.github.com/users/mariusor/events{/privacy}","received_events_url":"https://api.github.com/users/mariusor/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-11-13T11:27:58Z","updated_at":"2018-11-14T11:34:34Z","closed_at":null,"author_association":"NONE","body":"Problem:\r\nThe service loads a different file than the command mpris-scrobble-signon creates.\r\n\r\nHow to reproduce:\r\n1. Installed the program like described in the README.md\r\n2. Started mpris-scrobbler.service\r\n    -  `systemctl --user start mpris-scrobbler.service`\r\n    - In the `journalctl --user -u mpris-scrobbler-service` there ist this log:\r\n        - `WARNING main::loading_credentials: failed`\r\n        - `WARNING main::load_credentials: no credentials were loaded`\r\n3. Enable librefm\r\n    - `mpris-scrobbler-signon enable librefm`\r\n    - This creates the file `~/.config/mpris-scrobbler/credentials` with librefm `enabled = true`\r\n4. Created a token and session:\r\n    - `mpris-scrobbler-signon token librefm`\r\n    - `mpris-scrobbler-signon session librefm`\r\n    - During that, the file `~/.config/mpris-scrobbler/credentials` is filled with a token, a username and a session.\r\n5. Now I restart the service `systemctl --user restart mpris-scrobbler.service` and get the same warning:\r\n    - `WARNING main::loading_credentials: failed`\r\n    - `WARNING main::load_credentials: no credentials were loaded`\r\n\r\nTo solve the problem, after that I have copied the credentials file to another location:\r\n- `cp ~/.config/mpris-scrobbler/credentials ~/.local/share/mpris-scrobbler/credentials`\r\n\r\nThen restart the service again.\r\n\r\nSame problem on lastfm."},"comment":{"url":"https://api.github.com/repos/mariusor/mpris-scrobbler/issues/comments/438632260","html_url":"https://github.com/mariusor/mpris-scrobbler/issues/48#issuecomment-438632260","issue_url":"https://api.github.com/repos/mariusor/mpris-scrobbler/issues/48","id":438632260,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODYzMjI2MA==","user":{"login":"Bergiu","id":13796963,"node_id":"MDQ6VXNlcjEzNzk2OTYz","avatar_url":"https://avatars1.githubusercontent.com/u/13796963?v=4","gravatar_id":"","url":"https://api.github.com/users/Bergiu","html_url":"https://github.com/Bergiu","followers_url":"https://api.github.com/users/Bergiu/followers","following_url":"https://api.github.com/users/Bergiu/following{/other_user}","gists_url":"https://api.github.com/users/Bergiu/gists{/gist_id}","starred_url":"https://api.github.com/users/Bergiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bergiu/subscriptions","organizations_url":"https://api.github.com/users/Bergiu/orgs","repos_url":"https://api.github.com/users/Bergiu/repos","events_url":"https://api.github.com/users/Bergiu/events{/privacy}","received_events_url":"https://api.github.com/users/Bergiu/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T11:34:34Z","updated_at":"2018-11-14T11:34:34Z","author_association":"NONE","body":"Setting `XDG_DATA_HOME=~/.local/share` fixed this problem. It seems that I've forgot to set this in my system settings."}}
{"actor":{"display_login":"Bergiu"}}