{"action":"created","issue":{"url":"https://api.github.com/repos/bit-team/backintime/issues/408","repository_url":"https://api.github.com/repos/bit-team/backintime","labels_url":"https://api.github.com/repos/bit-team/backintime/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/bit-team/backintime/issues/408/comments","events_url":"https://api.github.com/repos/bit-team/backintime/issues/408/events","html_url":"https://github.com/bit-team/backintime/issues/408","id":110869649,"number":408,"title":"when run as root: send notifications to all users","user":{"login":"Germar","id":2731999,"avatar_url":"https://avatars.githubusercontent.com/u/2731999?v=3","gravatar_id":"","url":"https://api.github.com/users/Germar","html_url":"https://github.com/Germar","followers_url":"https://api.github.com/users/Germar/followers","following_url":"https://api.github.com/users/Germar/following{/other_user}","gists_url":"https://api.github.com/users/Germar/gists{/gist_id}","starred_url":"https://api.github.com/users/Germar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Germar/subscriptions","organizations_url":"https://api.github.com/users/Germar/orgs","repos_url":"https://api.github.com/users/Germar/repos","events_url":"https://api.github.com/users/Germar/events{/privacy}","received_events_url":"https://api.github.com/users/Germar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bit-team/backintime/labels/New","name":"New","color":"ddffdd"},{"url":"https://api.github.com/repos/bit-team/backintime/labels/Undecided","name":"Undecided","color":"ffdddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-11T17:18:11Z","updated_at":"2016-02-11T04:57:57Z","closed_at":null,"body":"When run as root, it may not be possible to put the systray icon on the desktops of any user that is logged in, but what about sending a notification?\n\nThe objective is to let the user know that a shutdown/reboot would interrupt the backup. (backintime -b is run by anacron)\n\n------------------------------------\nImported from Launchpad using lp2gh.\n\n * date created: 2012-04-21T13:50:11Z\n * owner: ceg\n * the launchpad url was https://bugs.launchpad.net/bugs/986570\n"},"comment":{"url":"https://api.github.com/repos/bit-team/backintime/issues/comments/182709036","html_url":"https://github.com/bit-team/backintime/issues/408#issuecomment-182709036","issue_url":"https://api.github.com/repos/bit-team/backintime/issues/408","id":182709036,"user":{"login":"dinoboy197","id":631178,"avatar_url":"https://avatars.githubusercontent.com/u/631178?v=3","gravatar_id":"","url":"https://api.github.com/users/dinoboy197","html_url":"https://github.com/dinoboy197","followers_url":"https://api.github.com/users/dinoboy197/followers","following_url":"https://api.github.com/users/dinoboy197/following{/other_user}","gists_url":"https://api.github.com/users/dinoboy197/gists{/gist_id}","starred_url":"https://api.github.com/users/dinoboy197/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinoboy197/subscriptions","organizations_url":"https://api.github.com/users/dinoboy197/orgs","repos_url":"https://api.github.com/users/dinoboy197/repos","events_url":"https://api.github.com/users/dinoboy197/events{/privacy}","received_events_url":"https://api.github.com/users/dinoboy197/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T04:57:57Z","updated_at":"2016-02-11T04:57:57Z","body":"> When run as root, it may not be possible to put the systray icon on the desktops of any user that is logged in\r\n\r\nBIT, in root mode, begins executing as root, and completes the backup process as root, then exits.\r\n\r\nI am not a *nix socket expert, especially when it comes to multiple processes that execute as different users (even with a parent / child process relationship), but I wonder if it would be technically possible (ignoring for the moment any code restructuring required) to, when in root mode:\r\n\r\nBIT begins executing as the user who scheduled the backup (not root), but then starts a child process as root which runs the actual snapshot logic and is able to communicate with the parent, which can manage the systray icon."}}