Skip to content

Commit

Permalink
Merge pull request #173 from kloptops/main
Browse files Browse the repository at this point in the history
Fix ArkOS gptokeyb2, and double quoting issue in funcs.txt.
  • Loading branch information
kloptops authored Oct 15, 2024
2 parents a1e3e57 + 0ba49b3 commit bbbbde9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion PortMaster/control.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ if [ $? != 0 ]; then
echo "No sudo present."
ESUDO=""
ESUDOKILL="-1" # for 351Elec and EmuELEC use "-1" (numeric one) or "-k"
ESUDOKILL2="-1"
export SDL_GAMECONTROLLERCONFIG_FILE="$controlfolder/gamecontrollerdb.txt"
else
ESUDO="sudo --preserve-env=SDL_GAMECONTROLLERCONFIG_FILE,DEVICE,param_device,HOTKEY,ANALOGSTICKS,SDL_KMSDRM_ORIENTATION,SDL_KMSDRM_ROTATION"
ESUDOKILL="-sudokill" # for ArkOS, RetroOZ, and TheRA use "-sudokill"
ESUDOKILL2="-Z" # Doesnt need sudokill as the process is run with sudo.
export SDL_GAMECONTROLLERCONFIG_FILE="$controlfolder/gamecontrollerdb.txt"
fi

Expand Down Expand Up @@ -166,5 +168,5 @@ if [ ! -z "$ESUDO" ]; then
$ESUDO chmod 666 /dev/uinput
fi

GPTOKEYB2="$ESUDO env LD_PRELOAD=$controlfolder/libinterpose.${DEVICE_ARCH}.so $controlfolder/gptokeyb2 $ESUDOKILL"
GPTOKEYB2="$ESUDO env LD_PRELOAD=$controlfolder/libinterpose.${DEVICE_ARCH}.so $controlfolder/gptokeyb2 $ESUDOKILL2"
GPTOKEYB="$ESUDO $controlfolder/gptokeyb $ESUDOKILL"
2 changes: 1 addition & 1 deletion PortMaster/funcs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fi

export PM_FUNCS_VERSION=1

export PM_SCRIPTNAME="$(basename ${PM_SCRIPTNAME:-$0})"
export PM_SCRIPTNAME="$(basename "${PM_SCRIPTNAME:-$0}")"
export PM_PORTNAME="${PM_PORTNAME:-${PM_SCRIPTNAME%.sh}}"
export PM_VERSION="$(cat "$controlfolder/version")"
export PM_RESOURCE_DIR="$controlfolder/resources"
Expand Down

0 comments on commit bbbbde9

Please sign in to comment.