From a008d6c9ed59cce7be94261929294c9dc280d64d Mon Sep 17 00:00:00 2001 From: David Mohammed Date: Tue, 9 Jul 2024 21:44:18 +0100 Subject: [PATCH] Ensure we check for wayland correctly for AppLauncher before loading budgie gir --- budgie-app-launcher/src/budgie-app-launcher/AppLauncher.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/budgie-app-launcher/src/budgie-app-launcher/AppLauncher.py b/budgie-app-launcher/src/budgie-app-launcher/AppLauncher.py index 62a525d6..fbb31e05 100644 --- a/budgie-app-launcher/src/budgie-app-launcher/AppLauncher.py +++ b/budgie-app-launcher/src/budgie-app-launcher/AppLauncher.py @@ -12,7 +12,12 @@ import gi.repository -gi.require_version('Budgie', '1.0') +gi.require_version('Libxfce4windowing', '0.0') +from gi.repository import Libxfce4windowing +if Libxfce4windowing.windowing_get() == Libxfce4windowing.Windowing.WAYLAND: + gi.require_version('Budgie', '2.0') +else: + gi.require_version('Budgie', '1.0') from gi.repository import Budgie from gi.repository import GObject from AppLauncherApplet import AppLauncherApplet