Run the input-method scripts with the system Python
A bare python resolves through PATH, so a mise, pyenv or venv interpreter could run them without the system's PyGObject. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0cd685946b
commit
a044bec0ab
5 files changed
+6
-6
No files matched your search
@@ -18,5 +18,5 @@ if [[ ${1:-} == "cycle" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
python "$OMARCHY_PATH/default/input-methods/configure.py" "$@"
|
||||
/usr/bin/python3 "$OMARCHY_PATH/default/input-methods/configure.py" "$@"
|
||||
fi
|
||||
@@ -14,7 +14,7 @@ fi
|
||||
|
||||
method=${1:-}
|
||||
if [[ -z $method ]]; then
|
||||
python "$OMARCHY_PATH/default/input-methods/typing_setup.py" input
|
||||
/usr/bin/python3 "$OMARCHY_PATH/default/input-methods/typing_setup.py" input
|
||||
exit
|
||||
fi
|
||||
|
||||
@@ -25,5 +25,5 @@ esac
|
||||
|
||||
mapfile -t packages < <(jq -r --arg method "$method" '.[$method].packages[]' "$OMARCHY_PATH/default/input-methods/presets.json")
|
||||
omarchy-pkg-add "${packages[@]}"
|
||||
python "$OMARCHY_PATH/default/input-methods/typing_setup.py" add "$method"
|
||||
/usr/bin/python3 "$OMARCHY_PATH/default/input-methods/typing_setup.py" add "$method"
|
||||
echo "Input method added. Use Super+I or the Japanese/Korean input key to switch; existing custom Fcitx keys are preserved."
|
||||
@@ -4,4 +4,4 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
python "$OMARCHY_PATH/default/input-methods/typing_setup.py" keyboard
|
||||
/usr/bin/python3 "$OMARCHY_PATH/default/input-methods/typing_setup.py" keyboard
|
||||
Reference in new issue
Block a user