View Single Post
Old 07-04-2022, 12:17 AM   #2
spinda
Member
spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.
 
spinda's Avatar
 
Posts: 12
Karma: 7954
Join Date: Dec 2014
Device: Kindle PW1/2/3/4/5, KV, KT2, K2
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.
spinda is offline   Reply With Quote