{"action":"created","issue":{"url":"https://api.github.com/repos/medoc92/upmpdcli/issues/31","repository_url":"https://api.github.com/repos/medoc92/upmpdcli","labels_url":"https://api.github.com/repos/medoc92/upmpdcli/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/medoc92/upmpdcli/issues/31/comments","events_url":"https://api.github.com/repos/medoc92/upmpdcli/issues/31/events","html_url":"https://github.com/medoc92/upmpdcli/issues/31","id":140227730,"number":31,"title":"onvolumechange does not work for shell scripts which needs root permission","user":{"login":"joerg-krause","id":6870896,"avatar_url":"https://avatars.githubusercontent.com/u/6870896?v=3","gravatar_id":"","url":"https://api.github.com/users/joerg-krause","html_url":"https://github.com/joerg-krause","followers_url":"https://api.github.com/users/joerg-krause/followers","following_url":"https://api.github.com/users/joerg-krause/following{/other_user}","gists_url":"https://api.github.com/users/joerg-krause/gists{/gist_id}","starred_url":"https://api.github.com/users/joerg-krause/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joerg-krause/subscriptions","organizations_url":"https://api.github.com/users/joerg-krause/orgs","repos_url":"https://api.github.com/users/joerg-krause/repos","events_url":"https://api.github.com/users/joerg-krause/events{/privacy}","received_events_url":"https://api.github.com/users/joerg-krause/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-11T16:25:09Z","updated_at":"2016-03-16T08:18:50Z","closed_at":null,"body":"Since commit b87516ae07e719941c25f72b2ccf234903fd2839 `onvolumechange` does not work anymore for calling shell scripts with root permissions, e.g. `onvolumechange = sudo /etc/on-volume-change.sh`.\r\n\r\nAs upmpdcli needs to be run as user `upmpdcli` this makes calling scripts or commands with root privileges more difficult.\r\n\r\nIs there any advantage to use upmpdclis built-in `ExecCmd` instead of `system()` (which was used before commit b87516ae07e719941c25f72b2ccf234903fd2839)."},"comment":{"url":"https://api.github.com/repos/medoc92/upmpdcli/issues/comments/197207596","html_url":"https://github.com/medoc92/upmpdcli/issues/31#issuecomment-197207596","issue_url":"https://api.github.com/repos/medoc92/upmpdcli/issues/31","id":197207596,"user":{"login":"joerg-krause","id":6870896,"avatar_url":"https://avatars.githubusercontent.com/u/6870896?v=3","gravatar_id":"","url":"https://api.github.com/users/joerg-krause","html_url":"https://github.com/joerg-krause","followers_url":"https://api.github.com/users/joerg-krause/followers","following_url":"https://api.github.com/users/joerg-krause/following{/other_user}","gists_url":"https://api.github.com/users/joerg-krause/gists{/gist_id}","starred_url":"https://api.github.com/users/joerg-krause/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joerg-krause/subscriptions","organizations_url":"https://api.github.com/users/joerg-krause/orgs","repos_url":"https://api.github.com/users/joerg-krause/repos","events_url":"https://api.github.com/users/joerg-krause/events{/privacy}","received_events_url":"https://api.github.com/users/joerg-krause/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T08:18:50Z","updated_at":"2016-03-16T08:18:50Z","body":"Sorry, for not being patient enough. I did had the time to dig any deeper into `ExecCmd` neither. The failure happens in `which()`, so probably it has to be fixed there. Many thanks for having a look!"}}