Skip to content

Commit

Permalink
fix: warning for i3wm - xdg-portal
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Dec 2, 2023
1 parent 05bfd2d commit ef60e7b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/nixos/core-desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@

xdg.portal = {
enable = true;

config = {
common = {
# Use xdg-desktop-portal-gtk for every portal interface...
default = [
"gtk"
];
# except for the secret portal, which is handled by gnome-keyring
"org.freedesktop.impl.portal.Secret" = [
"gnome-keyring"
];
};
};

# Sets environment variable NIXOS_XDG_OPEN_USE_PORTAL to 1
# This will make xdg-open use the portal to open programs,
# which resolves bugs involving programs opening inside FHS envs or with unexpected env vars set from wrappers.
Expand Down

0 comments on commit ef60e7b

Please sign in to comment.