{"action":"created","issue":{"url":"https://api.github.com/repos/conformal/spectrwm/issues/102","labels_url":"https://api.github.com/repos/conformal/spectrwm/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/conformal/spectrwm/issues/102/comments","events_url":"https://api.github.com/repos/conformal/spectrwm/issues/102/events","html_url":"https://github.com/conformal/spectrwm/issues/102","id":80194803,"number":102,"title":"autorun broken in last release (2.7.0)","user":{"login":"panchoh","id":471059,"avatar_url":"https://avatars.githubusercontent.com/u/471059?v=3","gravatar_id":"","url":"https://api.github.com/users/panchoh","html_url":"https://github.com/panchoh","followers_url":"https://api.github.com/users/panchoh/followers","following_url":"https://api.github.com/users/panchoh/following{/other_user}","gists_url":"https://api.github.com/users/panchoh/gists{/gist_id}","starred_url":"https://api.github.com/users/panchoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panchoh/subscriptions","organizations_url":"https://api.github.com/users/panchoh/orgs","repos_url":"https://api.github.com/users/panchoh/repos","events_url":"https://api.github.com/users/panchoh/events{/privacy}","received_events_url":"https://api.github.com/users/panchoh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-24T15:50:36Z","updated_at":"2015-05-24T18:24:07Z","closed_at":null,"body":"Hi.\r\n\r\nWith the last release (2.7.0) the autorun functionality seems to be broken (at least for me).\r\n\r\nI have in /etc/spectrwm.conf:\r\n    autorun                 = ws[1]:urxvt\r\n\r\nBut it does not get launched anymore.  Instead, an error is shown in ~/.xsession-errors:\r\n    spawn: execvp: No such file or directory\r\n\r\nUpon enabling debugging, I could see that args->argv[0] was actually empty when spawn() is called for this instance.\r\n\r\nI traced the issue back to setautorun().  By commenting out the call to free(str), it works again.\r\n\r\n(Of course, I know that this is not a proper fix, because then I reckon that a bit of memory is leaked)\r\n\r\nThought you'd like to know.\r\n\r\nLet me know if I can help.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/conformal/spectrwm/issues/comments/105046004","html_url":"https://github.com/conformal/spectrwm/issues/102#issuecomment-105046004","issue_url":"https://api.github.com/repos/conformal/spectrwm/issues/102","id":105046004,"user":{"login":"LordReg","id":1419272,"avatar_url":"https://avatars.githubusercontent.com/u/1419272?v=3","gravatar_id":"","url":"https://api.github.com/users/LordReg","html_url":"https://github.com/LordReg","followers_url":"https://api.github.com/users/LordReg/followers","following_url":"https://api.github.com/users/LordReg/following{/other_user}","gists_url":"https://api.github.com/users/LordReg/gists{/gist_id}","starred_url":"https://api.github.com/users/LordReg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LordReg/subscriptions","organizations_url":"https://api.github.com/users/LordReg/orgs","repos_url":"https://api.github.com/users/LordReg/repos","events_url":"https://api.github.com/users/LordReg/events{/privacy}","received_events_url":"https://api.github.com/users/LordReg/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T18:24:07Z","updated_at":"2015-05-24T18:24:07Z","body":"Hi panchoh,\r\nThis was reported on #101 and fixed with 2.7.1.  The free() needed to be after spawn() since a.argv contains references to the allocated memory and it is accessed in spawn().\r\nThanks for the report."}}