Skip to content
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

Examples not working on Windows 11 #24

Open
Nauja opened this issue Jun 2, 2023 · 0 comments
Open

Examples not working on Windows 11 #24

Nauja opened this issue Jun 2, 2023 · 0 comments

Comments

@Nauja
Copy link
Collaborator

Nauja commented Jun 2, 2023

Hi,

I had a hard time with the provided examples on Windows 11, because in the Quickstart you say:

It's super easy! You can create entries in as little as 3 lines:

from context_menu import menus

fc = menus.FastCommand('Example Fast Command 1', type='FILES', command='echo Hello')
fc.compile()

With a screenshot of the menu on Windows.

However I don't know if that's a difference with older Windows, or because you wanted the examples to look crossplatform, or concises, but for me the FastCommand with echo hello doesn't work. In fact it has to be cmd /c echo hello.

Actually I test it with pause so that if there's a command prompt it doesn't disappear right away. With pause, Windows opens me a menu to choose how to open the file because the FastCommand doesn't work. With cmd /c pause, the FastCommand works correctly and the command prompt opens.

Not saying that you should change the examples to include cmd /c, but right now the README makes it look like echo hello should work, and I spent many time trying to find why it didn't work for me 😅 . So the README should mention somewhere that if you want to do echo hello, the command actually has to be cmd /c echo hello on Windows

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

1 participant