1
0
Fork 0

build: Don't error out if startup_notification is enabled but not x11

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3765>
This commit is contained in:
Bilal Elmoussaoui 2024-05-22 10:57:50 +02:00 committed by Marge Bot
parent bb38601d0f
commit 42c534a02f

View file

@ -299,14 +299,10 @@ if have_pango_ft2
pangoft2_dep = dependency('pangoft2')
endif
have_startup_notification = get_option('startup_notification')
have_startup_notification = get_option('startup_notification') and have_x11_client
if have_startup_notification
if have_x11_client
libstartup_notification_dep = dependency('libstartup-notification-1.0',
version: libstartup_notification_req)
else
error('startup_notification requires X11 or Xwayland to be enabled')
endif
libstartup_notification_dep = dependency('libstartup-notification-1.0',
version: libstartup_notification_req)
endif
have_remote_desktop = get_option('remote_desktop')