8000 Win10 won't open folder from right click menu in open_dir() · Issue #1273 · qLab/qLib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Win10 won't open folder from right click menu in open_dir() #1273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
berniebernie opened this issue May 20, 2021 · 1 comment
Closed

Win10 won't open folder from right click menu in open_dir() #1273

berniebernie opened this issue May 20, 2021 · 1 comment
Assignees

Comments

@berniebernie
Copy link
berniebernie commented May 20, 2021

I posted this bug several versions ago, maybe it's due to my specific setup ? (windows10 + french locale) but the following lines

if is_windows():
dir = dir.replace('/', '\\')
statmsg("(windows) start %s" % dir)
subprocess.call(["start", dir])

Give out a error like so:

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "//#.#.#.#/pathtoqlib/scripts/python\qlibmenutools.py", line 346, in open_as_fs_path
    qlibutils.open_dir(dir)
  File "//#.#.#.#/pathtoqlib/scripts/python\qlibutils.py", line 290, in open_dir
    subprocess.call(["start", dir])
  File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.351\python27\lib\subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.351\python27\lib\subprocess.py", line 394, in __init__
    errread, errwrite)
  File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.351\python27\lib\subprocess.py", line 644, in _execute_child
    startupinfo)
WindowsError: [Error 2] Le fichier spécifié est introuvable

I solved it locally by replacing it with

path = os.path.realpath(dir)
os.startfile(path)

It works on images and folders (ie opens up to the right folder using the windows explorer)

(i'm not familiar with github sorry)

@johnnyquest johnnyquest self-assigned this Sep 20, 2024
johnnyquest added a commit to johnnyquest/qLib-johannes that referenced this issue Sep 22, 2024
johnnyquest added a commit to johnnyquest/qLib-johannes that referenced this issue Sep 22, 2024
@johnnyquest
Copy link
Contributor

@berniebernie apologies for the long delay on this, could you try it with the latest version, 0.2.257 and let me know if it works now?

johnnyquest added a commit to johnnyquest/qLib-johannes that referenced this issue Nov 27, 2024
Win10 won't open folder from right click menu in open_dir() qLab#1273
johnnyquest added a commit to johnnyquest/qLib-johannes that referenced this issue Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0