mherrmann / mherrmann/fman

Exception on OpenFile command

Open
#609 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug windows
Dominant language
Python
Stars
275
Forks
16
PR merge metrics
No merged PRs in 30d

Description

The starcktrace is bellow. It mentions some access problems, but I can't understand what's wrong as I open those files in explorer just fine.

Command 'OpenFile' raised error.

Traceback (most recent call last):
  File "fman\impl\plugins\command_registry.py", line 128, in _execute_command
  File "C:\Users\ch\AppData\Local\fman\Versions\1.5.2\Plugins\Core\core\commands\__init__.py", line 294, in __call__
    _open_files([url])
  File "C:\Users\ch\AppData\Local\fman\Versions\1.5.2\Plugins\Core\core\commands\__init__.py", line 323, in _open_files
    _open_local_file(path)
  File "C:\Users\ch\AppData\Local\fman\Versions\1.5.2\Plugins\Core\core\commands\__init__.py", line 341, in _open_local_file
    ShellExecute(0, None, path, None, cwd, SW_SHOWNORMAL)
pywintypes.error: (5, 'ShellExecute', 'Access is denied.')

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Plugins/Core/core/commands/init.py at _open_local_file, called by the OpenFile command, and inspect the ShellExecute call in the traceback. Reproduce the command on Windows with a file that opens in Explorer, then identify the condition causing the access-denied error. Done means the cause and expected OpenFile behavior are established and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.