nautilus-open-any-terminal icon indicating copy to clipboard operation
nautilus-open-any-terminal copied to clipboard

Fails with afc paths

Open acheong08 opened this issue 1 year ago • 1 comments

Example:

afc://00008030-001675AC2209802E:3/com.leshko.cloudplayer/_downloads

This happens when you plug in an iPhone.

Traceback (most recent call last):
  File "/home/acheong/.local/share/nautilus-python/extensions/nautilus_open_any_terminal.py", line 285, in _menu_activate_cb
    open_terminal_in_uri(file_.get_uri())
  File "/home/acheong/.local/share/nautilus-python/extensions/nautilus_open_any_terminal.py", line 201, in open_terminal_in_uri
    Popen(cmd, cwd=filename)  # pylint: disable=consider-using-with
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.12/subprocess.py", line 1953, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/com.leshko.cloudplayer/_downloads'

acheong08 avatar Apr 04 '24 06:04 acheong08

Sorry for the late response, but im not familiar with how afc paths work. If you know how to determine the actual mount path from an afc path, please share it and i'll make a PR where i implement this feature.

lvxnull avatar May 14 '24 17:05 lvxnull