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
Run script permission denied #2374
Comments
Well, since you havn't told us what "your system" is how can we help you? |
Oh sorry it's Solus 4. I also tested on Debian 10 and got the same result. My default shell is I'm mostly just wondering how and under what conditions this does work |
Ahh, bleeding edge distros, maybe something changed, although I'd expect a report from Arch first :) Clearly it works for most people since this is the first report. I know several devs use debian but I don't know if they have upgraded to 10 yet, lets see what they say. Note that here on Mint 19.1 Geany execute works, but But why Geany works I don't know, but would speculate its to do with which of the 16 trillion[1] modes of bash gets used, non-interactive, non-login, run as sh etc etc. [1] rough estimate |
Actually its possibly the problem if sh is just an alias for zsh, which says it emulates sh if started by that name, but how well that emulation is done I don't know. Can you check what sh actually runs? |
And its possible that the reason Apple needs execute is because it uses |
Just checked, on Solus You're right in that not using |
@GladOSkar Where did you get the
without
I think this ifdef can be removed now. I believe that in the past we really used to have the run script executable and run it using |
It's
Probably removed that at some point ages ago. I used to always use the VTE without run script which is why i didn't notice. Thanks a lot you two! Great work on geany btw, i love it :) |
Ok, I hadn't noticed it was changed, neat. |
Ah, no, I take it back, we need it executable on Apple. The terminal is run using the
and |
The "run" build commands don't work on my system.
the opened term said the run script was not executable.
Running the script manually (via
sh
as implemented inbuild.c
) yieldsWhich makes sense since the file is not marked as executable:
As can be seen in
build.c
, executable permissions are only set on apple platforms:geany/src/build.c
Lines 1170 to 1186 in 75def8a
I changed this in my PR #2372 which solves the problem for me. I'm not sure if i'm missing something here.
I don't think passing the script through
sh
circumvents the need for execution rights but i'm not an expert on unix permissions so maybe someone else knows why this was expected to work and/or works for other people?Thanks!
The text was updated successfully, but these errors were encountered: