{"action":"opened","issue":{"url":"https://api.github.com/repos/termux/termux-app/issues/608","repository_url":"https://api.github.com/repos/termux/termux-app","labels_url":"https://api.github.com/repos/termux/termux-app/issues/608/labels{/name}","comments_url":"https://api.github.com/repos/termux/termux-app/issues/608/comments","events_url":"https://api.github.com/repos/termux/termux-app/issues/608/events","html_url":"https://github.com/termux/termux-app/issues/608","id":302425331,"number":608,"title":"termux-* commands fail when invoked from within Emacs","user":{"login":"chipschap","id":1197482,"avatar_url":"https://avatars1.githubusercontent.com/u/1197482?v=4","gravatar_id":"","url":"https://api.github.com/users/chipschap","html_url":"https://github.com/chipschap","followers_url":"https://api.github.com/users/chipschap/followers","following_url":"https://api.github.com/users/chipschap/following{/other_user}","gists_url":"https://api.github.com/users/chipschap/gists{/gist_id}","starred_url":"https://api.github.com/users/chipschap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chipschap/subscriptions","organizations_url":"https://api.github.com/users/chipschap/orgs","repos_url":"https://api.github.com/users/chipschap/repos","events_url":"https://api.github.com/users/chipschap/events{/privacy}","received_events_url":"https://api.github.com/users/chipschap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-05T19:14:46Z","updated_at":"2018-03-05T19:14:46Z","closed_at":null,"author_association":"NONE","body":"I installed the termux-api package and app and all termux-* commands work perfectly at the command line. However, when I launch Emacs and attempt such a command from with Emacs (whether in eshell, from an elisp program, with M-!, etc.) I get either a hang (which fortunately is interruptable with Ctrl-g) or a segfault. An example is termux-open. If, again within Emacs, I launch the command with 'bash termux-open\" I get an error 127. A few things work, like termux-info. The difference seems to be anything that eventually invokes \"am\" in its script, and the \"bash termux-open\" example in fact points to the line containing \"am\" in the termux-open script (\"am broadcast ...\").\r\n\r\nI tried to find the point of failure in \"am\" and I /think/ but cannot be certain or verify that the problem occurs when \"am\" reads arguments. \r\n\r\nIt's hard to see what's different when running inside Emacs except for environment variables. But it's frustrating as the ability to use things like termux-open, termux-clipboard-*, etc., would be really a big benefit."}}
{"actor":{"display_login":"chipschap"}}