I see. Well... I hadn't had any problems with it.
I tried your script and with slight changes it works well under a regular user. Full setup:
sudo -i cat > /usr/bin/geany-stdin << "EOF" #!/usr/bin/env bash
TMPFILE=$(mktemp -p ~) trap 'rm -f "$TMPFILE"' exit cat - > "$TMPFILE" geany $@ "$TMPFILE" EOF chmod +x /usr/bin/geany-stdin exit
ls -l | geany-stdin
gksudo is another matter but I can work around it.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/780#issuecomment-160250999