Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

FileNotFoundError: [Errno 2] No such file or directory: 'xdg-mime' #420

Open
ColinDuquesnoy opened this issue May 7, 2017 · 1 comment
Milestone

Comments

@ColinDuquesnoy
Copy link
Contributor

ColinDuquesnoy commented May 7, 2017

14:30:24:513::CRITICAL::12429::qcrash._hooks::unhandled exception:
  File "/usr/bin/opencobolide", line 11, in <module>
    load_entry_point('OpenCobolIDE==4.7.6', 'gui_scripts', 'opencobolide')()
  File "/usr/lib/python3.6/site-packages/open_cobol_ide/main.py", line 33, in main
    app = Application()
  File "/usr/lib/python3.6/site-packages/open_cobol_ide/app.py", line 87, in __init__
    self.edit = EditController(self)
  File "/usr/lib/python3.6/site-packages/open_cobol_ide/controllers/edit.py", line 64, in __init__
    self.ui.tvFileSystem.set_context_menu(mnu)
  File "/usr/lib/python3.6/site-packages/open_cobol_ide/extlibs/pyqode/core/widgets/filesystem_treeview.py", line 201, in set_context_menu
    self.context_menu.init_actions()
  File "/usr/lib/python3.6/site-packages/open_cobol_ide/extlibs/pyqode/core/widgets/filesystem_treeview.py", line 697, in init_actions
    text = 'Show in %s' % self.get_file_explorer_name()
  File "/usr/lib/python3.6/site-packages/open_cobol_ide/extlibs/pyqode/core/widgets/filesystem_treeview.py", line 775, in get_file_explorer_name
    pgm = cls.get_file_explorer_command().split(' ')[0]
  File "/usr/lib/python3.6/site-packages/open_cobol_ide/extlibs/pyqode/core/widgets/filesystem_treeview.py", line 789, in get_file_explorer_command
    explorer = cls.get_linux_file_explorer()
  File "/usr/lib/python3.6/site-packages/open_cobol_ide/extlibs/pyqode/core/widgets/filesystem_treeview.py", line 754, in get_linux_file_explorer
    ['xdg-mime', 'query', 'default', 'inode/directory']).decode()
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.6/subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1326, in _execute_child
    raise child_exception_type(errno_num, err_msg)

FileNotFoundError: [Errno 2] No such file or directory: 'xdg-mime'
@ColinDuquesnoy
Copy link
Contributor Author

@CorruptComputer Possible workaround: install the xdg-utils package and report back whether it works or not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant