I ran into the same problem setting up my new PW5 today. A quick patch to gargoyle.sh fixes the issue:
Code:
#!/bin/sh
set -m
EXTENSION=/mnt/us/extensions/gargoyle
cd ${EXTENSION}/dist/
lipc-set-prop -s com.lab126.keyboard open net.fabiszewski.gargoyle:abc:0
SAVED_GAMES=/mnt/us/extensions/gargoyle/saved_games \
GAMES=/mnt/us/extensions/gargoyle/games \
LD_LIBRARY_PATH=${EXTENSION}/dist \
PATH=$PATH:${EXTENSION}/dist \
GTK2_RC_FILES=${EXTENSION}/dist/gtkrc \
./gargoyle &
sleep 1
lipc-set-prop -s com.lab126.keyboard open net.fabiszewski.gargoyle:abc:0
fg
lipc-set-prop -s com.lab126.keyboard close net.fabiszewski.gargoyle
This starts the "gargoyle" binary, sends it to the background, waits a second for the app to start, pokes the keyboard, and brings "gargoyle" back to the foreground again. Adjust "sleep 1" as needed, if Gargoyle takes longer to start up on your device.