diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 19:59:38 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 19:59:38 +0200 |
commit | a4b608cc746b9c3a575d549262d7ab0e0e8a0116 (patch) | |
tree | b043ba3212813d6167114cae4ce3fa61e67eeb64 | |
parent | 6bdfe5e196aa3dde5f15788259acbf089dd12e94 (diff) | |
download | nixos-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.nix | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 | ''; |