Skip to content

Commit bbdf46e

Browse files
author
PS Adithya
authored
fix: fallback to x11 gdk backend on error (pkgforge-dev#13)
1 parent ef94ea8 commit bbdf46e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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$

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ export TERM=xterm-256color
7676
export GHOSTTY_RESOURCES_DIR="${HERE}/usr/share/ghostty"
7777
7878
exec "${HERE}"/ld-linux-x86-64.so.2 --library-path "${HERE}"/usr/lib "${HERE}"/usr/bin/ghostty "$@"
79+
80+
if [ "$?" -gt 0 ] && [ -n "$WAYLAND_DISPLAY" ]; then
81+
export GDK_BACKEND=x11
82+
exec "${HERE}"/ld-linux-x86-64.so.2 --library-path "${HERE}"/usr/lib "${HERE}"/usr/bin/ghostty "$@"
83+
fi
7984
EOF
8085

8186
chmod +x AppRun

0 commit comments

Comments
 (0)