Skip to content

Commit

Permalink
widgets: fall back to Xwayland
Browse files Browse the repository at this point in the history
The widgets do not work under Wayland, so just use Xwayland for now.

If GTK somehow still connects to Wayland despite WAYLAND_DISPLAY being
unset I will not be happy.
  • Loading branch information
DemiMarie committed Nov 24, 2024
1 parent 2191a8c commit 9dee5a2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions qui/widget-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ if ! [ -e /etc/qubes-release ] && ! [ -e /var/run/qubes-service/guivm ]; then
exit 0
fi

if [[ -z "${DISPLAY:+test}" ]]; then
if [[ -n "${WAYLAND_DISPLAY+test}" ]]; then
echo "The widgets require Xwayland, but it is not available."
else
echo "DISPLAY empty or unset"
fi >&2
exit 1
fi

unset WAYLAND_DISPLAY

"$@"

exit_code=$?
Expand Down

0 comments on commit 9dee5a2

Please sign in to comment.