diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 21:32:43 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 21:32:43 +0200 |
commit | 7971b5c6c9b0e8e9b17444f71431bd29c28a8a3b (patch) | |
tree | df131122c4ba83e40fa7f7891029bd5933583ead | |
parent | 2e8835e2faa2e68764e55ac68d9240977f83b551 (diff) | |
download | nixos-7971b5c6c9b0e8e9b17444f71431bd29c28a8a3b.tar nixos-7971b5c6c9b0e8e9b17444f71431bd29c28a8a3b.tar.gz nixos-7971b5c6c9b0e8e9b17444f71431bd29c28a8a3b.tar.bz2 nixos-7971b5c6c9b0e8e9b17444f71431bd29c28a8a3b.tar.xz nixos-7971b5c6c9b0e8e9b17444f71431bd29c28a8a3b.zip |
strip leading =
-rw-r--r-- | custom/notify-user.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix index bf03f72f..c9a70f40 100644 --- a/custom/notify-user.nix +++ b/custom/notify-user.nix | |||
@@ -18,7 +18,7 @@ stdenv.mkDerivation { | |||
18 | main = do | 18 | main = do |
19 | envFiles <- glob "/home/${user}/.dbus/session-bus/*" | 19 | envFiles <- glob "/home/${user}/.dbus/session-bus/*" |
20 | forM_ envFiles $ \envFile -> do | 20 | forM_ envFiles $ \envFile -> do |
21 | sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile | 21 | sessionAddr <- tail . snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile |
22 | setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr | 22 | setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr |
23 | callProcess "${libnotify}/bin/notify-send" =<< getArgs | 23 | callProcess "${libnotify}/bin/notify-send" =<< getArgs |
24 | 24 | ||