{"action":"created","issue":{"url":"https://api.github.com/repos/spantaleev/redshift-scheduler/issues/2","labels_url":"https://api.github.com/repos/spantaleev/redshift-scheduler/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/spantaleev/redshift-scheduler/issues/2/comments","events_url":"https://api.github.com/repos/spantaleev/redshift-scheduler/issues/2/events","html_url":"https://github.com/spantaleev/redshift-scheduler/pull/2","id":95812702,"number":2,"title":"Add a .desktop file to make DEs autostart redshift-scheduler","user":{"login":"aperezdc","id":723451,"avatar_url":"https://avatars.githubusercontent.com/u/723451?v=3","gravatar_id":"","url":"https://api.github.com/users/aperezdc","html_url":"https://github.com/aperezdc","followers_url":"https://api.github.com/users/aperezdc/followers","following_url":"https://api.github.com/users/aperezdc/following{/other_user}","gists_url":"https://api.github.com/users/aperezdc/gists{/gist_id}","starred_url":"https://api.github.com/users/aperezdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperezdc/subscriptions","organizations_url":"https://api.github.com/users/aperezdc/orgs","repos_url":"https://api.github.com/users/aperezdc/repos","events_url":"https://api.github.com/users/aperezdc/events{/privacy}","received_events_url":"https://api.github.com/users/aperezdc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-18T10:25:46Z","updated_at":"2015-08-09T11:39:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spantaleev/redshift-scheduler/pulls/2","html_url":"https://github.com/spantaleev/redshift-scheduler/pull/2","diff_url":"https://github.com/spantaleev/redshift-scheduler/pull/2.diff","patch_url":"https://github.com/spantaleev/redshift-scheduler/pull/2.patch"},"body":"This allows to make desktop environments compliant with the XDG autostart\r\nspecification to run redshift-scheduler when the user logs in. It has been\r\ntested to work under GNOME, but it should work with other DEs that follow\r\nthe specification."},"comment":{"url":"https://api.github.com/repos/spantaleev/redshift-scheduler/issues/comments/129168348","html_url":"https://github.com/spantaleev/redshift-scheduler/pull/2#issuecomment-129168348","issue_url":"https://api.github.com/repos/spantaleev/redshift-scheduler/issues/2","id":129168348,"user":{"login":"aperezdc","id":723451,"avatar_url":"https://avatars.githubusercontent.com/u/723451?v=3","gravatar_id":"","url":"https://api.github.com/users/aperezdc","html_url":"https://github.com/aperezdc","followers_url":"https://api.github.com/users/aperezdc/followers","following_url":"https://api.github.com/users/aperezdc/following{/other_user}","gists_url":"https://api.github.com/users/aperezdc/gists{/gist_id}","starred_url":"https://api.github.com/users/aperezdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperezdc/subscriptions","organizations_url":"https://api.github.com/users/aperezdc/orgs","repos_url":"https://api.github.com/users/aperezdc/repos","events_url":"https://api.github.com/users/aperezdc/events{/privacy}","received_events_url":"https://api.github.com/users/aperezdc/received_events","type":"User","site_admin":false},"created_at":"2015-08-09T11:39:37Z","updated_at":"2015-08-09T11:39:37Z","body":"A closer reading of the [desktop entry spec](http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html) (not just the autostart one) shows this description for `Hidden`:\r\n\r\n> `Hidden` should have been called `Deleted`. It means the user deleted (at his level) something that was present (at an upper level, e.g. in the system dirs). It's strictly equivalent to the .desktop file not existing at all, as far as that user is concerned. This can also be used to \"uninstall\" existing files (e.g. due to a renaming) - by letting make install install a file with `Hidden=true` in it. \r\n\r\nThe correct way seems to be installing the file under `/usr/share/applications`, as a normal application, and then when added via the Tweak Tool, it will copy the file to `~/.config/autostart/` and add a couple of items (like the `X-GNOME-Autostart-enabled=true` line) to make sure it will run at session startup."}}