{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/4999","repository_url":"https://api.github.com/repos/syncthing/syncthing","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/4999/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/4999/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/4999/events","html_url":"https://github.com/syncthing/syncthing/pull/4999","id":331005207,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzODQ4MTY0","number":4999,"title":"cmd/syncthing: Add tray icon for windows","user":{"login":"AudriusButkevicius","id":1144861,"node_id":"MDQ6VXNlcjExNDQ4NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/1144861?v=4","gravatar_id":"","url":"https://api.github.com/users/AudriusButkevicius","html_url":"https://github.com/AudriusButkevicius","followers_url":"https://api.github.com/users/AudriusButkevicius/followers","following_url":"https://api.github.com/users/AudriusButkevicius/following{/other_user}","gists_url":"https://api.github.com/users/AudriusButkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/AudriusButkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudriusButkevicius/subscriptions","organizations_url":"https://api.github.com/users/AudriusButkevicius/orgs","repos_url":"https://api.github.com/users/AudriusButkevicius/repos","events_url":"https://api.github.com/users/AudriusButkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/AudriusButkevicius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-06-10T21:45:28Z","updated_at":"2018-06-20T19:59:38Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/4999","html_url":"https://github.com/syncthing/syncthing/pull/4999","diff_url":"https://github.com/syncthing/syncthing/pull/4999.diff","patch_url":"https://github.com/syncthing/syncthing/pull/4999.patch"},"body":"This is a bit of a moon shot, and I haven't yet figured out how to fully polish this.\r\n\r\nEssentially when launching via explorer, it starts a tray icon, in all other cases it starts headless.\r\n\r\n![image](https://user-images.githubusercontent.com/1144861/41206661-57e5f7ec-6cff-11e8-9969-907a2ec80561.png)\r\n\r\nAlso, it's compiled headless by default, this avoids the console popping up when launched from explorer.\r\nThis does not break stdin/out wiring, and I can still see log output if I launch from cygwin.\r\n\r\nHowever if I launch from cmd, it seems to start a headless process, so I have no console attached it seems.\r\n\r\nPerhaps we should revert the compiled headless, and accept the console popping up briefly before we wire the tray icon.\r\n\r\nAlso, if the tray icon fails, we can keep the console visible,\r\n\r\nCC @canton7\r\n"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/398877367","html_url":"https://github.com/syncthing/syncthing/pull/4999#issuecomment-398877367","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/4999","id":398877367,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODg3NzM2Nw==","user":{"login":"calmh","id":125426,"node_id":"MDQ6VXNlcjEyNTQyNg==","avatar_url":"https://avatars3.githubusercontent.com/u/125426?v=4","gravatar_id":"","url":"https://api.github.com/users/calmh","html_url":"https://github.com/calmh","followers_url":"https://api.github.com/users/calmh/followers","following_url":"https://api.github.com/users/calmh/following{/other_user}","gists_url":"https://api.github.com/users/calmh/gists{/gist_id}","starred_url":"https://api.github.com/users/calmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calmh/subscriptions","organizations_url":"https://api.github.com/users/calmh/orgs","repos_url":"https://api.github.com/users/calmh/repos","events_url":"https://api.github.com/users/calmh/events{/privacy}","received_events_url":"https://api.github.com/users/calmh/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T19:59:38Z","updated_at":"2018-06-20T19:59:38Z","author_association":"MEMBER","body":"Ah"}}
{"actor":{"display_login":"calmh"}}