From a034b5fd3f036bb20f7c93be472e2b6f6d9a0916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20de=20Hesselle?= Date: Mon, 9 Mar 2026 20:40:48 +0100 Subject: [PATCH] Add more special treatments for macOS --- meson.build | 5 +++-- src/Views/PreferencesView.vala | 2 +- src/meson.build | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index f1462be..e51a7ed 100644 --- a/meson.build +++ b/meson.build @@ -114,7 +114,8 @@ dependencies = [ if windows_build dependencies += dependency('gio-windows-2.0') ico_src = import('windows').compile_resources('windows/icons/ico.rc') - +elif macos_build + dependencies += dependency('gio-unix-2.0') else dependencies += dependency('gio-unix-2.0') dependencies += dependency('libportal') @@ -131,5 +132,5 @@ subdir('src') gnome.post_install( glib_compile_schemas: true, gtk_update_icon_cache: true, - update_desktop_database: true + update_desktop_database: not macos_build ) diff --git a/src/Views/PreferencesView.vala b/src/Views/PreferencesView.vala index 0d58e0a..5bf734b 100644 --- a/src/Views/PreferencesView.vala +++ b/src/Views/PreferencesView.vala @@ -101,7 +101,7 @@ /****************************************************/ /* Autostart Request */ /****************************************************/ -#if !WINDOWS +#if !WINDOWS && !MACOS var both_buttons = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 5) { halign = Gtk.Align.FILL }; diff --git a/src/meson.build b/src/meson.build index 79fd70c..8c5549b 100644 --- a/src/meson.build +++ b/src/meson.build @@ -35,6 +35,8 @@ sources = files ( if windows_build sources += ico_src +elif macos_build + # noop else sources += files('Utils' / 'Libportal.vala') endif