Export to GitHub

puppy-development - issue #4

Geany won't run a script


Posted on Oct 14, 2009 by Grumpy Hippo

What steps will reproduce the problem? 1. open a bash script 2. click execute 3. ...Should see an xterm with the script followed by an exit code.

I have narrowed it down to needing $HOME/tmp (in our case home is /root)

Removing the quotes in the geany_run_script.sh will run the program as normal

I think geany_run_script.sh and filetypes.sh script in /usr/share/geany is the file I believe creates geany_run_script.sh

however, removing the quotes from around %f in filetypes.sh does not fix it

Comment #1

Posted on Oct 14, 2009 by Grumpy Hippo

turns out that geany doesn't make the autogenerated geany_run_script.sh executable

the code that makes this file is in build.c

build.c already has which contains g_chmod

That's as far as I can go with this one

background: Delete the geany_run_script.sh immediately after execution to prevent leaking old copies when the script was quit unexpectedly (closes #2710482, patch by Martin Olsson, thanks).

2009-05-27 Enrico Tröger

  • src/build.c: Remove quote_executable() as it is not used anymore. When creating the geany_run_script.bat use the "%0" variable expansion and quote it for the "del" command (closes #2797172).
  • src/win32.c:

Comment #2

Posted on Oct 30, 2009 by Happy Bird

couldn't this be solved by using the terminal setting

/usr/X11R7/bin/xterm -e bash -c.

in geany

Status: Accepted

Labels:
Type-Defect Priority-Medium