{"action":"created","issue":{"url":"https://api.github.com/repos/i3/i3/issues/1702","labels_url":"https://api.github.com/repos/i3/i3/issues/1702/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3/issues/1702/comments","events_url":"https://api.github.com/repos/i3/i3/issues/1702/events","html_url":"https://github.com/i3/i3/issues/1702","id":75234169,"number":1702,"title":"i3*.xession.desktop should allow a hook","user":{"login":"RoUS","id":277209,"avatar_url":"https://avatars.githubusercontent.com/u/277209?v=3","gravatar_id":"","url":"https://api.github.com/users/RoUS","html_url":"https://github.com/RoUS","followers_url":"https://api.github.com/users/RoUS/followers","following_url":"https://api.github.com/users/RoUS/following{/other_user}","gists_url":"https://api.github.com/users/RoUS/gists{/gist_id}","starred_url":"https://api.github.com/users/RoUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoUS/subscriptions","organizations_url":"https://api.github.com/users/RoUS/orgs","repos_url":"https://api.github.com/users/RoUS/repos","events_url":"https://api.github.com/users/RoUS/events{/privacy}","received_events_url":"https://api.github.com/users/RoUS/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/i3/i3/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-11T14:07:27Z","updated_at":"2015-05-11T14:48:25Z","closed_at":null,"body":"Feature request: Have i3's Xsession `.desktop` files list a script as the `Exec` value, rather than the `i3`binary.\r\n\r\nI'm using i3 on Fedora 21:\r\n\r\n    $ rpm -q i3\r\n    i3-4.9.1-1.fc21.x86_64\r\n    $ i3 -v\r\n    i3 version 4.9.1 (2015-03-07, branch \"4.9.1\") © 2009-2014 Michael Stapelberg and contributors\r\n\r\nThe `i3*.xsession.desktop` files contain `Exec=i3` and `TryExec=i3`, which means the binary will be directly `exec`ed by the Xsession sequence.\r\n\r\nUnfortunately, that means the *only* hook for user intervention in this scenario (which is apparently where all of the Xsession stuff is now going) is the user's `$HOME/.profile` login script.  That gets invoked by `/etc/X11/xinit/xinitrc-common` and no other user script is in the sequence until the `.desktop` file's `Exec` is processed.\r\n\r\nMy feature request is that the `.desktop` files list a script as the {Try.}Exec key value, and that the script look for a user hook script to source before `exec`ing the i3 binary."},"comment":{"url":"https://api.github.com/repos/i3/i3/issues/comments/100931717","html_url":"https://github.com/i3/i3/issues/1702#issuecomment-100931717","issue_url":"https://api.github.com/repos/i3/i3/issues/1702","id":100931717,"user":{"login":"RoUS","id":277209,"avatar_url":"https://avatars.githubusercontent.com/u/277209?v=3","gravatar_id":"","url":"https://api.github.com/users/RoUS","html_url":"https://github.com/RoUS","followers_url":"https://api.github.com/users/RoUS/followers","following_url":"https://api.github.com/users/RoUS/following{/other_user}","gists_url":"https://api.github.com/users/RoUS/gists{/gist_id}","starred_url":"https://api.github.com/users/RoUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoUS/subscriptions","organizations_url":"https://api.github.com/users/RoUS/orgs","repos_url":"https://api.github.com/users/RoUS/repos","events_url":"https://api.github.com/users/RoUS/events{/privacy}","received_events_url":"https://api.github.com/users/RoUS/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T14:48:25Z","updated_at":"2015-05-11T14:48:25Z","body":"No. :-(  The only user script executed is `~/.profile` and that's by `/etc/X11/xinit/xinitrc-common`."}}