{"action":"created","issue":{"url":"https://api.github.com/repos/Kilian/f.lux-indicator-applet/issues/49","repository_url":"https://api.github.com/repos/Kilian/f.lux-indicator-applet","labels_url":"https://api.github.com/repos/Kilian/f.lux-indicator-applet/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/Kilian/f.lux-indicator-applet/issues/49/comments","events_url":"https://api.github.com/repos/Kilian/f.lux-indicator-applet/issues/49/events","html_url":"https://github.com/Kilian/f.lux-indicator-applet/issues/49","id":52587459,"number":49,"title":"PID file lock","user":{"login":"Alkaris","id":6682988,"avatar_url":"https://avatars.githubusercontent.com/u/6682988?v=3","gravatar_id":"","url":"https://api.github.com/users/Alkaris","html_url":"https://github.com/Alkaris","followers_url":"https://api.github.com/users/Alkaris/followers","following_url":"https://api.github.com/users/Alkaris/following{/other_user}","gists_url":"https://api.github.com/users/Alkaris/gists{/gist_id}","starred_url":"https://api.github.com/users/Alkaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alkaris/subscriptions","organizations_url":"https://api.github.com/users/Alkaris/orgs","repos_url":"https://api.github.com/users/Alkaris/repos","events_url":"https://api.github.com/users/Alkaris/events{/privacy}","received_events_url":"https://api.github.com/users/Alkaris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-21T06:21:02Z","updated_at":"2016-02-18T19:37:46Z","closed_at":null,"body":"I experience an issue with flux where the PID file lock for `fluxgui` which I installed by PPA package, when fluxgui is killed because it's playing up and running massive CPU load at 100%, or fails to adjust the screen when it's time to change it. Flux doesn't remove it's old PID file and thinks it's still running if you try to start it up again.\r\n\r\nI notice that `fluxgui` dumps it's PID file under `/tmp` directory usually format like this;\r\n\r\n    /tmp/fluxgui_alkaris.pid\r\n\r\nI have to manually remove this file myself by doing;\r\n\r\n    $ rm /tmp/fluxgui_alkaris.pid\r\n\r\nI'm not too sure how this could be implemented, but could there be a way for it to remove the old PID lock before it starts instead of checking and exiting the app after it detects the old one?\r\n\r\n    \"pid file detected, no real process found, removing…\"\r\n\r\nsomething like that perhaps? Check if there is a pid file, then check if there is a real process of it actually running, if not, remove the old pid file and create a new one."},"comment":{"url":"https://api.github.com/repos/Kilian/f.lux-indicator-applet/issues/comments/185884450","html_url":"https://github.com/Kilian/f.lux-indicator-applet/issues/49#issuecomment-185884450","issue_url":"https://api.github.com/repos/Kilian/f.lux-indicator-applet/issues/49","id":185884450,"user":{"login":"synthor","id":13002524,"avatar_url":"https://avatars.githubusercontent.com/u/13002524?v=3","gravatar_id":"","url":"https://api.github.com/users/synthor","html_url":"https://github.com/synthor","followers_url":"https://api.github.com/users/synthor/followers","following_url":"https://api.github.com/users/synthor/following{/other_user}","gists_url":"https://api.github.com/users/synthor/gists{/gist_id}","starred_url":"https://api.github.com/users/synthor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synthor/subscriptions","organizations_url":"https://api.github.com/users/synthor/orgs","repos_url":"https://api.github.com/users/synthor/repos","events_url":"https://api.github.com/users/synthor/events{/privacy}","received_events_url":"https://api.github.com/users/synthor/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T19:37:46Z","updated_at":"2016-02-18T19:37:46Z","body":"My workaround works like a charm.\r\n\r\nNo more startup errors and fluxgui is started on every boot. :)"}}