Add workaround for xdpg not opening links

NixOS/nixpkgs#189851
This commit is contained in:
NullBite 2024-02-11 19:02:50 +01:00
parent 1a06b0c70e
commit a175620ca9
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -9,6 +9,14 @@ let
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl"; brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
polkit-agent = "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"; polkit-agent = "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
# https://github.com/flatpak/xdg-desktop-portal-gtk/issues/440#issuecomment-1900520919
xdpg-workaround = pkgs.writeShellScript "xdg-desktop-portal-gtk-workaround"
''
${pkgs.coreutils}/bin/sleep 3
${pkgs.systemd}/bin/systemctl --user import-environment PATH
${pkgs.systemd}/bin/systemctl --user restart xdg-desktop-portal.service
'';
# Hyprland workspace configuration # Hyprland workspace configuration
mainWorkspaces = builtins.genList (x: x+1) (9 ++ [0]); mainWorkspaces = builtins.genList (x: x+1) (9 ++ [0]);
workspaceName = key: let workspaceName = key: let
@ -67,6 +75,7 @@ in
exec-once = [ exec-once = [
notifydaemon notifydaemon
polkit-agent polkit-agent
xdpg-workaround
]; ];
# Source a file (multi-file configs) # Source a file (multi-file configs)