{"action":"created","issue":{"url":"https://api.github.com/repos/bil-elmoussaoui/Hardcode-Tray/issues/176","repository_url":"https://api.github.com/repos/bil-elmoussaoui/Hardcode-Tray","labels_url":"https://api.github.com/repos/bil-elmoussaoui/Hardcode-Tray/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/bil-elmoussaoui/Hardcode-Tray/issues/176/comments","events_url":"https://api.github.com/repos/bil-elmoussaoui/Hardcode-Tray/issues/176/events","html_url":"https://github.com/bil-elmoussaoui/Hardcode-Tray/issues/176","id":178498491,"number":176,"title":"Applying causes user's home folder to be owned by root","user":{"login":"Floofies","id":17753498,"avatar_url":"https://avatars.githubusercontent.com/u/17753498?v=3","gravatar_id":"","url":"https://api.github.com/users/Floofies","html_url":"https://github.com/Floofies","followers_url":"https://api.github.com/users/Floofies/followers","following_url":"https://api.github.com/users/Floofies/following{/other_user}","gists_url":"https://api.github.com/users/Floofies/gists{/gist_id}","starred_url":"https://api.github.com/users/Floofies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floofies/subscriptions","organizations_url":"https://api.github.com/users/Floofies/orgs","repos_url":"https://api.github.com/users/Floofies/repos","events_url":"https://api.github.com/users/Floofies/events{/privacy}","received_events_url":"https://api.github.com/users/Floofies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T01:10:50Z","updated_at":"2016-09-22T01:54:19Z","closed_at":null,"body":"On a fresh, but fully updated installation of Xubuntu 16.04, applying causes the following:\r\nHere is my user folder **before** applying:\r\n```\r\ndani@Traxus-GD65:/home$ ls -l\r\ntotal 4\r\ndrwxrwxr-x 30 dani dani 4096 Sep 21 20:26 dani\r\n```\r\n\r\nHere is the same folder right **after** applying:\r\n```\r\ndani@Traxus-GD65:/home$ ls -l\r\ntotal 4\r\ndrwxrwxr-x 30 root root 4096 Sep 21 20:26 dani\r\n\r\n```\r\nThis then causes any program on the system, that needs to write to the user's home folder, to fail. I do not have any non-default users or accounts set up. I suspect the issue lies in one of the calls to `chown`. In the process of hunting this down now."},"comment":{"url":"https://api.github.com/repos/bil-elmoussaoui/Hardcode-Tray/issues/comments/248791865","html_url":"https://github.com/bil-elmoussaoui/Hardcode-Tray/issues/176#issuecomment-248791865","issue_url":"https://api.github.com/repos/bil-elmoussaoui/Hardcode-Tray/issues/176","id":248791865,"user":{"login":"Floofies","id":17753498,"avatar_url":"https://avatars.githubusercontent.com/u/17753498?v=3","gravatar_id":"","url":"https://api.github.com/users/Floofies","html_url":"https://github.com/Floofies","followers_url":"https://api.github.com/users/Floofies/followers","following_url":"https://api.github.com/users/Floofies/following{/other_user}","gists_url":"https://api.github.com/users/Floofies/gists{/gist_id}","starred_url":"https://api.github.com/users/Floofies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floofies/subscriptions","organizations_url":"https://api.github.com/users/Floofies/orgs","repos_url":"https://api.github.com/users/Floofies/repos","events_url":"https://api.github.com/users/Floofies/events{/privacy}","received_events_url":"https://api.github.com/users/Floofies/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T01:54:19Z","updated_at":"2016-09-22T01:54:19Z","body":"Inserting `print(dir_path + str(getenv(\"SUDO_UID\")) + str(getenv(\"SUDO_GID\")))` above the `chown` call located on line 153 yields these results:\r\n```\r\nApplying now..\r\n\r\nGoogle Chrome -- fixed using google-chrome-tray\r\nNylas N1 -- fixed using nylas-tray-full-newitems\r\nNylas N1 -- fixed using nylas-tray-full\r\nNylas N1 -- fixed using nylas-tray-empty\r\n//00\r\n//home/00\r\n//home/dani/00\r\n//home/dani/.TelegramDesktop/00\r\n//home/dani/.TelegramDesktop/tdata/00\r\n//home/dani/.TelegramDesktop/tdata/ticons/00\r\nTelegram -- fixed using telegram-panel\r\n//00\r\n//home/00\r\n//home/dani/00\r\n//home/dani/.TelegramDesktop/00\r\n//home/dani/.TelegramDesktop/tdata/00\r\n//home/dani/.TelegramDesktop/tdata/ticons/00\r\nTelegram -- fixed using telegram-attention-panel\r\n```\r\nFollowed by this is well over 50 identical blocks:\r\n```\r\n//00\r\n//home/00\r\n//home/dani/00\r\n//home/dani/.TelegramDesktop/00\r\n//home/dani/.TelegramDesktop/tdata/00\r\n//home/dani/.TelegramDesktop/tdata/ticons/00\r\n```\r\nThis indicates to me it could be a unique issue related to Telegram."}}
{"actor":{"display_login":"Floofies"}}