[Github-comments] [geany] Read standard input as new file (#780)

naturalspringwater notifications at xxxxx
Sat Nov 28 05:42:31 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151127/5c07e925/attachment.html>


More information about the Github-comments mailing list