File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ repos:
2929 - repo : https://github.com/rhysd/actionlint
3030 rev : v1.7.6
3131 hooks :
32- - id : actionlint-system
32+ - id : actionlint
3333
3434 - repo : https://github.com/woodruffw/zizmor
35- rev : v0.5 .0
35+ rev : v0.8 .0
3636 hooks :
3737 - id : zizmor
3838 files : ^\.github/workflows/.*\.ya?ml$
Original file line number Diff line number Diff line change @@ -75,7 +75,17 @@ HERE="$(dirname "$(readlink -f "$0")")"
7575export TERM=xterm-256color
7676export GHOSTTY_RESOURCES_DIR="${HERE}/usr/share/ghostty"
7777
78- exec "${HERE}"/ld-linux-x86-64.so.2 --library-path "${HERE}"/usr/lib "${HERE}"/usr/bin/ghostty "$@"
78+
79+ command=("${HERE}/ld-linux-x86-64.so.2" --library-path "${HERE}/usr/lib" "${HERE}/usr/bin/ghostty" "$@")
80+
81+ # Check if WAYLAND_DISPLAY is set, attempt normally or fallback GDK_BACKEND to x11
82+ if [ -z "$WAYLAND_DISPLAY" ]; then
83+ if ! "${command[@]}"; then
84+ GDK_BACKEND=x11 "${command[@]}"
85+ fi
86+ else
87+ "${command[@]}"
88+ fi
7989EOF
8090
8191chmod +x AppRun
You can’t perform that action at this time.
0 commit comments