{"action":"opened","issue":{"url":"https://api.github.com/repos/ranger/ranger/issues/1379","repository_url":"https://api.github.com/repos/ranger/ranger","labels_url":"https://api.github.com/repos/ranger/ranger/issues/1379/labels{/name}","comments_url":"https://api.github.com/repos/ranger/ranger/issues/1379/comments","events_url":"https://api.github.com/repos/ranger/ranger/issues/1379/events","html_url":"https://github.com/ranger/ranger/issues/1379","id":382185627,"node_id":"MDU6SXNzdWUzODIxODU2Mjc=","number":1379,"title":"Ranger crashes on long file name (/bin/sh)","user":{"login":"cawleymillward","id":41902456,"node_id":"MDQ6VXNlcjQxOTAyNDU2","avatar_url":"https://avatars0.githubusercontent.com/u/41902456?v=4","gravatar_id":"","url":"https://api.github.com/users/cawleymillward","html_url":"https://github.com/cawleymillward","followers_url":"https://api.github.com/users/cawleymillward/followers","following_url":"https://api.github.com/users/cawleymillward/following{/other_user}","gists_url":"https://api.github.com/users/cawleymillward/gists{/gist_id}","starred_url":"https://api.github.com/users/cawleymillward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cawleymillward/subscriptions","organizations_url":"https://api.github.com/users/cawleymillward/orgs","repos_url":"https://api.github.com/users/cawleymillward/repos","events_url":"https://api.github.com/users/cawleymillward/events{/privacy}","received_events_url":"https://api.github.com/users/cawleymillward/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-19T12:07:01Z","updated_at":"2018-11-19T12:07:01Z","closed_at":null,"author_association":"NONE","body":"\r\n#### Runtime Environment\r\nFedora 28 (4.18.17-200) - 64 bit\r\nGNOME Terminal - 3.28.2 with VTE 0.52.2 +GNUTLS\r\nPython 2.7.15\r\nRanger 1.9.2\r\nLocale: en_GB.utf8\r\n\r\n#### Current Behavior\r\nWhen using 'open_with feh', Ranger crashes and the error below in the traceback section shows.\r\n\r\n#### Expected Behavior\r\nFor Ranger to open feh with the image directed.\r\n\r\n#### Context\r\nJust trying to open and view the image.\r\n\r\n#### Possible Solutions\r\n\r\n#### Steps to reproduce\r\n1.  Navigate to directory with long name.\r\n2. Press 'R' (or any shortcut with 'open_with' bound), then type 'feh'.\r\n\r\n#### Traceback\r\n<!-- If ranger crashes, paste the traceback in the quotes below. -->\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/site-packages/ranger/core/main.py\", line 195, in main\r\n    fm.loop()\r\n  File \"/usr/lib/python3.6/site-packages/ranger/core/fm.py\", line 400, in loop\r\n    ui.handle_input()\r\n  File \"/usr/lib/python3.6/site-packages/ranger/gui/ui.py\", line 269, in handle_input\r\n    self.handle_mouse()\r\n  File \"/usr/lib/python3.6/site-packages/ranger/gui/ui.py\", line 197, in handle_mouse\r\n    DisplayableContainer.click(self, event)\r\n  File \"/usr/lib/python3.6/site-packages/ranger/gui/displayable.py\", line 283, in click\r\n    if displayable.click(event):\r\n  File \"/usr/lib/python3.6/site-packages/ranger/gui/widgets/view_base.py\", line 188, in click\r\n    if DisplayableContainer.click(self, event):\r\n  File \"/usr/lib/python3.6/site-packages/ranger/gui/displayable.py\", line 283, in click\r\n    if displayable.click(event):\r\n  File \"/usr/lib/python3.6/site-packages/ranger/gui/widgets/browsercolumn.py\", line 101, in click\r\n    self.fm.move(right=0)\r\n  File \"/usr/lib/python3.6/site-packages/ranger/core/actions.py\", line 514, in move\r\n    result = self.execute_file(selection, mode=mode)\r\n  File \"/usr/lib/python3.6/site-packages/ranger/core/actions.py\", line 463, in execute_file\r\n    return self.rifle.execute(filenames, mode, label, flags, None)\r\n  File \"/usr/lib/python3.6/site-packages/ranger/ext/rifle.py\", line 435, in execute\r\n    Popen_forked(cmd, env=self.hook_environment(os.environ))\r\n  File \"/usr/lib/python3.6/site-packages/ranger/ext/popen_forked.py\", line 23, in Popen_forked\r\n    subprocess.Popen(*args, **kwargs)\r\n  File \"/usr/lib64/python3.6/subprocess.py\", line 709, in __init__\r\n    restore_signals, start_new_session)\r\n  File \"/usr/lib64/python3.6/subprocess.py\", line 1344, in _execute_child\r\n    raise child_exception_type(errno_num, err_msg, err_filename)\r\nOSError: [Errno 7] Argument list too long: '/bin/sh'\r\n```\r\n"}}
{"actor":{"display_login":"cawleymillward"}}