Leigh Scott 998fca7
From 44cdb61c245b2f184a4cad1ed7b3c1c288be0dd2 Mon Sep 17 00:00:00 2001
Leigh Scott 998fca7
From: Leigh Scott <leigh123linux@gmail.com>
Leigh Scott 998fca7
Date: Sat, 16 Sep 2023 14:03:18 +0100
Leigh Scott 998fca7
Subject: [PATCH] add xdg-portal conf
Leigh Scott 998fca7
Leigh Scott 998fca7
---
Leigh Scott 998fca7
 data/meson.build                        | 1 +
Leigh Scott 998fca7
 data/xdg-portal/meson.build             | 4 ++++
Leigh Scott 998fca7
 data/xdg-portal/x-cinnamon-portals.conf | 3 +++
Leigh Scott 998fca7
 3 files changed, 8 insertions(+)
Leigh Scott 998fca7
 create mode 100644 data/xdg-portal/meson.build
Leigh Scott 998fca7
 create mode 100644 data/xdg-portal/x-cinnamon-portals.conf
Leigh Scott 998fca7
Leigh Scott 998fca7
diff --git a/data/meson.build b/data/meson.build
Leigh Scott 998fca7
index b67ff1f38..506190063 100644
Leigh Scott 998fca7
--- a/data/meson.build
Leigh Scott 998fca7
+++ b/data/meson.build
Leigh Scott 998fca7
@@ -38,6 +38,7 @@ foreach desktop_file : desktop_files
Leigh Scott 998fca7
     )
Leigh Scott 998fca7
 endforeach
Leigh Scott 998fca7
 
Leigh Scott 998fca7
+subdir('xdg-portal')
Leigh Scott 998fca7
 subdir('xsessions')
Leigh Scott 998fca7
 subdir('services')
Leigh Scott 998fca7
 
Leigh Scott 998fca7
diff --git a/data/xdg-portal/meson.build b/data/xdg-portal/meson.build
Leigh Scott 998fca7
new file mode 100644
Leigh Scott 998fca7
index 000000000..75ccf078b
Leigh Scott 998fca7
--- /dev/null
Leigh Scott 998fca7
+++ b/data/xdg-portal/meson.build
Leigh Scott 998fca7
@@ -0,0 +1,4 @@
Leigh Scott 998fca7
+install_data(
Leigh Scott 998fca7
+  'x-cinnamon-portals.conf',
Leigh Scott 998fca7
+  install_dir: join_paths(get_option('datadir'), 'xdg-desktop-portal'),
Leigh Scott 998fca7
+)
Leigh Scott 998fca7
diff --git a/data/xdg-portal/x-cinnamon-portals.conf b/data/xdg-portal/x-cinnamon-portals.conf
Leigh Scott 998fca7
new file mode 100644
Leigh Scott 998fca7
index 000000000..d8f5c6118
Leigh Scott 998fca7
--- /dev/null
Leigh Scott 998fca7
+++ b/data/xdg-portal/x-cinnamon-portals.conf
Leigh Scott 998fca7
@@ -0,0 +1,3 @@
Leigh Scott 998fca7
+[preferred]
Leigh Scott 998fca7
+default=xapp;gtk;
Leigh Scott 998fca7
+
Leigh Scott 998fca7
-- 
Leigh Scott 998fca7
2.41.0
Leigh Scott 998fca7