summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 19:59:38 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 19:59:38 +0200
commita4b608cc746b9c3a575d549262d7ab0e0e8a0116 (patch)
treeb043ba3212813d6167114cae4ce3fa61e67eeb64
parent6bdfe5e196aa3dde5f15788259acbf089dd12e94 (diff)
downloadnixos-a4b608cc746b9c3a575d549262d7ab0e0e8a0116.tar
nixos-a4b608cc746b9c3a575d549262d7ab0e0e8a0116.tar.gz
nixos-a4b608cc746b9c3a575d549262d7ab0e0e8a0116.tar.bz2
nixos-a4b608cc746b9c3a575d549262d7ab0e0e8a0116.tar.xz
nixos-a4b608cc746b9c3a575d549262d7ab0e0e8a0116.zip
always exit with code 0
-rw-r--r--hel.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/hel.nix b/hel.nix
index 7ab96e0c..84c83793 100644
--- a/hel.nix
+++ b/hel.nix
@@ -257,6 +257,8 @@
257 source = pkgs.writeScript "notify-gkleen" '' 257 source = pkgs.writeScript "notify-gkleen" ''
258 #!${pkgs.zsh}/bin/zsh 258 #!${pkgs.zsh}/bin/zsh
259 259
260 trap "exit 0" EXIT
261
260 DBUS_ADDRESS=$(grep "DBUS_SESSION_BUS_ADDRESS=" /home/gkleen/.dbus/session-bus/${"*"} | cut -d "=" -f 2-) 262 DBUS_ADDRESS=$(grep "DBUS_SESSION_BUS_ADDRESS=" /home/gkleen/.dbus/session-bus/${"*"} | cut -d "=" -f 2-)
261 exec env DBUS_SESSION_BUS_ADDRESS=''${DBUS_ADDRESS} ${pkgs.libnotify}/bin/notify-send ''${(q)@} 263 exec env DBUS_SESSION_BUS_ADDRESS=''${DBUS_ADDRESS} ${pkgs.libnotify}/bin/notify-send ''${(q)@}
262 ''; 264 '';