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 25, 2024
1 parent 2191a8c commit 18901a0
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

export WAYLAND_DISPLAY=

"$@"

exit_code=$?
Expand Down

0 comments on commit 18901a0

Please sign in to comment.