From 7971b5c6c9b0e8e9b17444f71431bd29c28a8a3b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 21 Jul 2016 21:32:43 +0200 Subject: strip leading = --- custom/notify-user.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'custom') 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 { main = do envFiles <- glob "/home/${user}/.dbus/session-bus/*" forM_ envFiles $ \envFile -> do - sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile + sessionAddr <- tail . snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr callProcess "${libnotify}/bin/notify-send" =<< getArgs -- cgit v1.2.3