From 2e8835e2faa2e68764e55ac68d9240977f83b551 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 21 Jul 2016 21:28:27 +0200 Subject: dep --- custom/notify-user.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom/notify-user.nix b/custom/notify-user.nix index e3437ea7..bf03f72f 100644 --- a/custom/notify-user.nix +++ b/custom/notify-user.nix @@ -13,9 +13,11 @@ stdenv.mkDerivation { import Data.List (isPrefixOf) + import Control.Monad (forM_) + main = do envFiles <- glob "/home/${user}/.dbus/session-bus/*" - forM envFiles $ \envFile -> do + forM_ envFiles $ \envFile -> do sessionAddr <- 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