-
Notifications
You must be signed in to change notification settings - Fork 521
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
Windows scoop version causes 'Open With' dialogue #1306
Comments
good effort 🫡 Not sure we can do anything here |
@Tyecon, to run ani-cli are you double-clicking the ani-cli files? |
No, the things I've put in the code blocks are exactly what I'm entering in the terminal. Windows run dialogue does the same things. The shims folder is on the PATH env-var. |
Entering
I think you get the Open-With dialog because your shell is trying to run the ~/scoop/shims/ani-cli file which is an sh file for bash. If you create a file called test02 with the line "ls" with the command
|
The echo files will open-with with no suffix. With .cmd it seems that echo places an unknown character at the start that breaks it.
→ C:\Users\Tyecon› cat ~/scoop/shims/ani-cli
#!/bin/sh
# C:\Users\Tyecon\scoop\apps\ani-cli\current\ani-cli
"C:\Users\Tyecon\scoop\apps\ani-cli\current\ani-cli" "$@"
→ C:\Users\Tyecon› cat ~/scoop/shims/ani-cli.cmd
@rem C:\Users\Tyecon\scoop\apps\ani-cli\current\ani-cli
@"C:\Program Files\Git\bin\bash.exe" "C:\Users\Tyecon\scoop\apps\ani-cli\current\ani-cli" %*
I think I figured out that it's some oddity with my windows subsystem linux environment trying to run the sh scripts directly outside of bash. A lot of linux commands that normally wouldn't work in powershell work in mine because of WSL. So it's a shell script bug with WSL not ani-cli probably. I think some other programs I've used through scoop and choco just had different exe wrappers for it that worked. |
Sorry, I guess
You could try adding a You could also try removing |
Also, what is the output of |
|
OS: Windows 10
Shell: Powershell 5.1.19041 in Windows Terminal
Ani-Cli Version: 4.8.0
Behaviours:
ani-cli
: Open-With Dialogue, no program does anything (tried cmd.exe, ps.exe, mpv)ani-cli.cmd
: Works as expected in powershell~\scoop\shims\ani-cli
: Opens in new cmd.exe window but works~\scoop\shims\ani-cli.cmd
: Works as expectedcd ~\scoop\shims\
then.\ani-cli
: Works as expectedRenaming to ani-cli.exe does nothing.
Other scoop based programs don't have this same behaviour.
Various Set-ItemProperty settings don't seem to help (Read and Execute is true).
Might just be something weird with my terminal, but I might as well post the workarounds to help anyone that comes across the strange behaviour.
The text was updated successfully, but these errors were encountered: