github.com/hhwill/poc-eth@v0.0.0-20240218063348-3bb107c90dbf/cmd/clef/docs/qubes/qubes.Clefsign (about) 1 #!/bin/bash 2 3 SIGNER_BIN="/home/user/tools/clef/clef" 4 SIGNER_CMD="/home/user/tools/gtksigner/gtkui.py -s $SIGNER_BIN" 5 6 # Start clef if not already started 7 if [ ! -S /home/user/.clef/clef.ipc ]; then 8 $SIGNER_CMD & 9 sleep 1 10 fi 11 12 # Should be started by now 13 if [ -S /home/user/.clef/clef.ipc ]; then 14 # Post incoming request to HTTP channel 15 curl -H "Content-Type: application/json" -X POST -d @- http://localhost:8550 2>/dev/null 16 fi