summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 21:25:16 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 21:25:16 +0200
commit349ba2051ff782373bdd4b65c4a8e539f8c636e5 (patch)
tree768913ec9b275e97b0f1f5d1eb729f13d4b369ef /custom
parente41925f463af8e11881e94e286422582faefc5b1 (diff)
downloadnixos-349ba2051ff782373bdd4b65c4a8e539f8c636e5.tar
nixos-349ba2051ff782373bdd4b65c4a8e539f8c636e5.tar.gz
nixos-349ba2051ff782373bdd4b65c4a8e539f8c636e5.tar.bz2
nixos-349ba2051ff782373bdd4b65c4a8e539f8c636e5.tar.xz
nixos-349ba2051ff782373bdd4b65c4a8e539f8c636e5.zip
less specific glob
Diffstat (limited to 'custom')
-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