diff options
Diffstat (limited to 'custom')
-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 | ||