summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac1
-rw-r--r--meson.build1
-rw-r--r--xdg-portal/Makefile.am5
-rw-r--r--xdg-portal/mate-portals.conf3
-rw-r--r--xdg-portal/meson.build4
6 files changed, 15 insertions, 1 deletions
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'),
+)