summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/notify-user.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix
index b8293e49..a437bf9b 100644
--- a/custom/notify-user.nix
+++ b/custom/notify-user.nix
@@ -15,7 +15,7 @@ stdenv.mkDerivation {
15 15
16 main = do 16 main = do
17 setCurrentDirectory "/" 17 setCurrentDirectory "/"
18 (envFile:_) <- glob "/home/${user}/.dbus/session-bus/*-0" 18 (envFile:_) <- glob "/home/${user}/.dbus/session-bus/*"
19 sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile 19 sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile
20 setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr 20 setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr
21 proc "${libnotify}/bin/notify-send" =<< getArgs 21 proc "${libnotify}/bin/notify-send" =<< getArgs