aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-11-09 14:52:04 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-11-09 14:52:04 +0400
commitcccc068f9871ab82fed6dee5432ef58c6eb71d39 (patch)
tree240544ff59604e464e840943ed3786d8bd23bb99
parent5c485216460a86df4743f6d09b6ad2d591086368 (diff)
downloadniri-cccc068f9871ab82fed6dee5432ef58c6eb71d39.tar.gz
niri-cccc068f9871ab82fed6dee5432ef58c6eb71d39.tar.bz2
niri-cccc068f9871ab82fed6dee5432ef58c6eb71d39.zip
Add niri-portals.conf
New config file for the new xdg-desktop-portal.
-rw-r--r--Cargo.toml1
-rw-r--r--resources/niri-portals.conf2
2 files changed, 3 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index ef2b694e..1fae42a9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -81,6 +81,7 @@ assets = [
{ source = "target/release/niri", dest = "/usr/bin/", mode = "755" },
{ source = "resources/niri-session", dest = "/usr/bin/", mode = "755" },
{ source = "resources/niri.desktop", dest = "/usr/share/wayland-sessions/", mode = "644" },
+ { source = "resources/niri-portals.conf", dest = "/usr/share/xdg-desktop-portal/", mode = "644" },
{ source = "resources/niri.service", dest = "/usr/lib/systemd/user/", mode = "644" },
]
[package.metadata.generate-rpm.requires]
diff --git a/resources/niri-portals.conf b/resources/niri-portals.conf
new file mode 100644
index 00000000..5a7048d5
--- /dev/null
+++ b/resources/niri-portals.conf
@@ -0,0 +1,2 @@
+[preferred]
+default=gnome;gtk;