fman icon indicating copy to clipboard operation
fman copied to clipboard

How to "Open with..." program with parameters

Open MikiGrit opened this issue 6 years ago • 4 comments

I want to open file with program, that uses parameters (e.g. "flatpak run org.videolan.VLC"). But such command cannot be added through app and when I manually edit "Apps (Linux).json" it shows:

Command 'OpenWith' raised error.

Traceback (most recent call last):
  File "fman/impl/plugins/command_registry.py", line 97, in _execute_command
  File "/opt/fman/Plugins/Core/core/commands/__init__.py", line 1906, in __call__
    ShowAppsForOpening(files).show()
  File "/opt/fman/Plugins/Core/core/commands/__init__.py", line 2002, in show
    self.on_selected(option)
  File "/opt/fman/Plugins/Core/core/commands/__init__.py", line 2053, in on_selected
    _open_files_with_app(self._files, option)
  File "/opt/fman/Plugins/Core/core/commands/__init__.py", line 1948, in _open_files_with_app
    Popen(**get_popen_kwargs_for_opening(files, with_=app_path))
  File "subprocess.py", line 676, in __init__
  File "subprocess.py", line 1289, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/flatpak run org.videolan.VLC'

MikiGrit avatar Jun 05 '18 11:06 MikiGrit