{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/10880","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/10880/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/10880/comments","events_url":"https://api.github.com/repos/electron/electron/issues/10880/events","html_url":"https://github.com/electron/electron/issues/10880","id":267683837,"node_id":"MDU6SXNzdWUyNjc2ODM4Mzc=","number":10880,"title":"Disable setLoginItemSettings -> openAtLogin not working","user":{"login":"adlk","id":3265004,"node_id":"MDQ6VXNlcjMyNjUwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3265004?v=4","gravatar_id":"","url":"https://api.github.com/users/adlk","html_url":"https://github.com/adlk","followers_url":"https://api.github.com/users/adlk/followers","following_url":"https://api.github.com/users/adlk/following{/other_user}","gists_url":"https://api.github.com/users/adlk/gists{/gist_id}","starred_url":"https://api.github.com/users/adlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adlk/subscriptions","organizations_url":"https://api.github.com/users/adlk/orgs","repos_url":"https://api.github.com/users/adlk/repos","events_url":"https://api.github.com/users/adlk/events{/privacy}","received_events_url":"https://api.github.com/users/adlk/received_events","type":"User","site_admin":false},"labels":[{"id":969465062,"node_id":"MDU6TGFiZWw5Njk0NjUwNjI=","url":"https://api.github.com/repos/electron/electron/labels/3-0-x","name":"3-0-x","color":"8d9ee8","default":false},{"id":520323169,"node_id":"MDU6TGFiZWw1MjAzMjMxNjk=","url":"https://api.github.com/repos/electron/electron/labels/bug%20:beetle:","name":"bug :beetle:","color":"fbca04","default":false},{"id":97403606,"node_id":"MDU6TGFiZWw5NzQwMzYwNg==","url":"https://api.github.com/repos/electron/electron/labels/platform/macOS","name":"platform/macOS","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":{"login":"codebytere","id":2036040,"node_id":"MDQ6VXNlcjIwMzYwNDA=","avatar_url":"https://avatars2.githubusercontent.com/u/2036040?v=4","gravatar_id":"","url":"https://api.github.com/users/codebytere","html_url":"https://github.com/codebytere","followers_url":"https://api.github.com/users/codebytere/followers","following_url":"https://api.github.com/users/codebytere/following{/other_user}","gists_url":"https://api.github.com/users/codebytere/gists{/gist_id}","starred_url":"https://api.github.com/users/codebytere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebytere/subscriptions","organizations_url":"https://api.github.com/users/codebytere/orgs","repos_url":"https://api.github.com/users/codebytere/repos","events_url":"https://api.github.com/users/codebytere/events{/privacy}","received_events_url":"https://api.github.com/users/codebytere/received_events","type":"User","site_admin":true},"assignees":[{"login":"codebytere","id":2036040,"node_id":"MDQ6VXNlcjIwMzYwNDA=","avatar_url":"https://avatars2.githubusercontent.com/u/2036040?v=4","gravatar_id":"","url":"https://api.github.com/users/codebytere","html_url":"https://github.com/codebytere","followers_url":"https://api.github.com/users/codebytere/followers","following_url":"https://api.github.com/users/codebytere/following{/other_user}","gists_url":"https://api.github.com/users/codebytere/gists{/gist_id}","starred_url":"https://api.github.com/users/codebytere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebytere/subscriptions","organizations_url":"https://api.github.com/users/codebytere/orgs","repos_url":"https://api.github.com/users/codebytere/repos","events_url":"https://api.github.com/users/codebytere/events{/privacy}","received_events_url":"https://api.github.com/users/codebytere/received_events","type":"User","site_admin":true}],"milestone":null,"comments":27,"created_at":"2017-10-23T14:12:29Z","updated_at":"2018-10-24T12:52:35Z","closed_at":"2018-10-12T22:19:27Z","author_association":"NONE","body":"* Electron version: 1.7.9\r\n* Operating system: macOS High Sierra (10.13)\r\n\r\n### Expected behavior\r\n`app.setLoginItemSettings({ openAtLogin: false });` should disable auto start.\r\n\r\n### Actual behavior\r\n`app.setLoginItemSettings({ openAtLogin: true });` adds app to auto start as expected. However setting it to `false` does not remove it. \r\nOn macOS 10.12 it was working as expected.\r\n\r\n### How to reproduce\r\nIn main or renderer run the following code\r\n```js\r\nconsole.log(app.getLoginItemSettings().openAtLogin); // either true or false if it has been set before\r\napp.setLoginItemSettings({ openAtLogin: true }); \r\nconsole.log(app.getLoginItemSettings().openAtLogin); // true\r\napp.setLoginItemSettings({ openAtLogin: false });\r\nconsole.log(app.getLoginItemSettings().openAtLogin); // true\r\n```\r\n\r\nI've provided a test repo here:\r\n```\r\n$ git clone https://github.com/adlk/openAtLogin-issue -b master\r\n$ npm install\r\n$ npm start || electron .\r\n```"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/432642276","html_url":"https://github.com/electron/electron/issues/10880#issuecomment-432642276","issue_url":"https://api.github.com/repos/electron/electron/issues/10880","id":432642276,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjY0MjI3Ng==","user":{"login":"timirila1","id":7912755,"node_id":"MDQ6VXNlcjc5MTI3NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/7912755?v=4","gravatar_id":"","url":"https://api.github.com/users/timirila1","html_url":"https://github.com/timirila1","followers_url":"https://api.github.com/users/timirila1/followers","following_url":"https://api.github.com/users/timirila1/following{/other_user}","gists_url":"https://api.github.com/users/timirila1/gists{/gist_id}","starred_url":"https://api.github.com/users/timirila1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timirila1/subscriptions","organizations_url":"https://api.github.com/users/timirila1/orgs","repos_url":"https://api.github.com/users/timirila1/repos","events_url":"https://api.github.com/users/timirila1/events{/privacy}","received_events_url":"https://api.github.com/users/timirila1/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T12:52:35Z","updated_at":"2018-10-24T12:52:35Z","author_association":"NONE","body":"Can not disable \"Launch at login\"\r\nIt still in Login Items\r\n\r\n* Electron version: 2.0.12\r\n* MacOS Mojave 10.14\r\n"}}
{"actor":{"display_login":"timirila1"}}