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 in build.c) yields

oskar@torres ~ % /bin/sh -c /tmp/geany_run_script_HVQX9Z.sh
/bin/sh: /tmp/geany_run_script_HVQX9Z.sh: Permission denied

Which make sense since the file is not marked as executable:

oskar@torres ~ % ls -l /tmp/geany_run_script_HVQX9Z.sh
.rw-rw-r-- 256 oskar 19 Oct 19:23 /tmp/geany_run_script_HVQX9Z.sh

As can be seen in build.c, executable permissions are only set on apple platforms:

https://github.com/geany/geany/blob/75def8a24eb2dab8d376ae051806128827d34fbe/src/build.c#L1172-L1184

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!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.