From 287fdce6d43086d4610f294a8cff759fb58eeabb Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 14 Sep 2023 12:13:19 +0200 Subject: add xdg-desktop-portal config file --- Makefile.am | 2 +- configure.ac | 1 + meson.build | 1 + xdg-portal/Makefile.am | 5 +++++ xdg-portal/mate-portals.conf | 3 +++ xdg-portal/meson.build | 4 ++++ 6 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 xdg-portal/Makefile.am create mode 100644 xdg-portal/mate-portals.conf create mode 100644 xdg-portal/meson.build diff --git a/Makefile.am b/Makefile.am index 6be0d84..c8e9064 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = libmate-desktop man docs schemas tools icons po +SUBDIRS = libmate-desktop man docs schemas tools icons po xdg-portal if MATE_ABOUT_ENABLED SUBDIRS += mate-about diff --git a/configure.ac b/configure.ac index 6a9129f..2477262 100644 --- a/configure.ac +++ b/configure.ac @@ -257,6 +257,7 @@ schemas/org.mate.background.gschema.xml man/Makefile tools/Makefile icons/Makefile +xdg-portal/Makefile ]) AC_OUTPUT diff --git a/meson.build b/meson.build index 070b662..b64f88c 100644 --- a/meson.build +++ b/meson.build @@ -104,6 +104,7 @@ endif subdir('po') subdir('tools') subdir('schemas') +subdir('xdg-portal') if get_option('mate-about') subdir('mate-about') endif diff --git a/xdg-portal/Makefile.am b/xdg-portal/Makefile.am new file mode 100644 index 0000000..a907bb4 --- /dev/null +++ b/xdg-portal/Makefile.am @@ -0,0 +1,5 @@ +NULL = + +xdgportaldir = $(datadir)/xdg-desktop-portal +dist_xdgportal_DATA = mate-portals.conf + diff --git a/xdg-portal/mate-portals.conf b/xdg-portal/mate-portals.conf new file mode 100644 index 0000000..a586b59 --- /dev/null +++ b/xdg-portal/mate-portals.conf @@ -0,0 +1,3 @@ +[preferred] +default=gtk; +org.freedesktop.impl.portal.Secret=gnome-keyring; diff --git a/xdg-portal/meson.build b/xdg-portal/meson.build new file mode 100644 index 0000000..0151fec --- /dev/null +++ b/xdg-portal/meson.build @@ -0,0 +1,4 @@ +install_data( + 'mate-portals.conf', + install_dir: join_paths(get_option('datadir'), 'xdg-desktop-portal'), +) -- cgit v1.2.1