{"action":"created","issue":{"url":"https://api.github.com/repos/tux3/qTox/issues/947","labels_url":"https://api.github.com/repos/tux3/qTox/issues/947/labels{/name}","comments_url":"https://api.github.com/repos/tux3/qTox/issues/947/comments","events_url":"https://api.github.com/repos/tux3/qTox/issues/947/events","html_url":"https://github.com/tux3/qTox/pull/947","id":52370786,"number":947,"title":"Autorun on OS startup","user":{"login":"novist","id":7602544,"avatar_url":"https://avatars.githubusercontent.com/u/7602544?v=3","gravatar_id":"","url":"https://api.github.com/users/novist","html_url":"https://github.com/novist","followers_url":"https://api.github.com/users/novist/followers","following_url":"https://api.github.com/users/novist/following{/other_user}","gists_url":"https://api.github.com/users/novist/gists{/gist_id}","starred_url":"https://api.github.com/users/novist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novist/subscriptions","organizations_url":"https://api.github.com/users/novist/orgs","repos_url":"https://api.github.com/users/novist/repos","events_url":"https://api.github.com/users/novist/events{/privacy}","received_events_url":"https://api.github.com/users/novist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-12-18T14:42:21Z","updated_at":"2015-01-21T10:07:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tux3/qTox/pulls/947","html_url":"https://github.com/tux3/qTox/pull/947","diff_url":"https://github.com/tux3/qTox/pull/947.diff","patch_url":"https://github.com/tux3/qTox/pull/947.patch"},"body":"Adds autorun on OS startup behaviour when \"Start in tray\" option is checked. Supported platforms are windows and xfreedesktop-compatible unixes. It works with multiple profiles although after creating/switching profile checkbox in settings is not updated. I am unsure how to go about it. Maybe it is another problem of not updating settings UI after switching profile?\r\n\r\nOSX support is missing - someone please contribute. I added warning about missing implementation [here](https://github.com/novist/qTox/compare/tux3:master...novist:autorun?expand=1#diff-a095c041ed4fe02895e04ee7e2ddff6fR473). When it is implemented entire #ifdef / #endif block should be removed. With these changes behaviour on OSX does not change.\r\n\r\nI hijacked \"Start in tray\" option because in code its called like get**Autostart**InTray(). This implied intention to use that option for autorun functionality in the future and so i did.\r\n\r\nWindows implementation used std::wstring / QString::toStdWString(). While most likely it is not a problem im mentioning it here in case it is required to work with Qt compiled without stl support. Non-stl solution would be rather ugly so i opted in for tiny bit stl."},"comment":{"url":"https://api.github.com/repos/tux3/qTox/issues/comments/70812489","html_url":"https://github.com/tux3/qTox/pull/947#issuecomment-70812489","issue_url":"https://api.github.com/repos/tux3/qTox/issues/947","id":70812489,"user":{"login":"novist","id":7602544,"avatar_url":"https://avatars.githubusercontent.com/u/7602544?v=3","gravatar_id":"","url":"https://api.github.com/users/novist","html_url":"https://github.com/novist","followers_url":"https://api.github.com/users/novist/followers","following_url":"https://api.github.com/users/novist/following{/other_user}","gists_url":"https://api.github.com/users/novist/gists{/gist_id}","starred_url":"https://api.github.com/users/novist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novist/subscriptions","organizations_url":"https://api.github.com/users/novist/orgs","repos_url":"https://api.github.com/users/novist/repos","events_url":"https://api.github.com/users/novist/events{/privacy}","received_events_url":"https://api.github.com/users/novist/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T10:07:18Z","updated_at":"2015-01-21T10:07:18Z","body":"@stqism any update on this?\r\n@dubslow i still think better having 66% implemented instead of 0%. Maybe this could be merged while osx support could be contributed via new PR? At the moment on mac checkbox is disabled so its graceful-enough failure. Or it can be hidden if you prefer."}}