-
Notifications
You must be signed in to change notification settings - Fork 15
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
MAC Shorcut doesn't work #59
Comments
@Xueyi-Chen-David Can you give more precise details of what you did and the resulting shell file in Contents/MacOS? If which shell is being used makes a difference, perhaps there is some difference in the Environmental Variables set for those shells on your system that affects the running of your script. |
#!/bin/bash What I mean is that if I change the first line to other shell program except bash, this will work. BTW, Run /tests directly on MAC book also didn’t work |
Does that mean that your "Test.sh" script runs differently from bash than it does from sh? I guess I would say that I am not sure how we would know to use a different shell (like, what if someone wants to use zsh?). What was the command used to create that shortcut? |
Actually, When I double click the app, nothing will be happened (first line is #!/bin/bash), but if I change the first line into #!/bin/sh (or like dash, zsh...) it will work. My python code is here: |
Does your "Test.sh" script run differently from bash than from sh? In general, how would we know what shell to use? Like, you did sort of specify a shell - and it was "/bin/bash" - so that is very confusing. |
No different if I run "bash test.sh" or "sh test.sh". But Actually, I try to run the test program "Timer" from the repo (test_pyshortcuts.py), it also didn't work when I double click the Timer.app. And I change the shebang to the others except bash, it works. |
@Xueyi-Chen-David The timer test works on macOS for me. I think that executing Contents/MacOS/<Script> must be running some user-specific shell initialization file -- maybe Sorry, I'm not really seeing a problem with pyshortcuts here, at least not yet.... |
I made a shortcut and set SCRIPT as shell script on Mac book and the shortcut doesn't work.
However, if I modified /darwin.py:119 to #!/bin/sh (except #!/bin/bash), it can run successfully.
I don't know why this is happened....
The text was updated successfully, but these errors were encountered: