From 06370a6f922d1bff9533e2114fcf610acbc30a89 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 26 Nov 2023 13:16:04 +0100 Subject: modules/sway: set -e on portal activation This would have caught when I was trying to start a unit that didn't exist. --- modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix') diff --git a/modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix b/modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix index 4cee84891539..892e6a280d4c 100644 --- a/modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix +++ b/modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix @@ -5,6 +5,7 @@ programs.sway.extraConfig = '' exec ${pkgs.writeShellScript "sway-portal-environment" '' + set -e dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP systemctl --user stop pipewire xdg-desktop-portal xdg-desktop-portal-wlr ''} -- cgit 1.4.1