From 349ba2051ff782373bdd4b65c4a8e539f8c636e5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 21 Jul 2016 21:25:16 +0200 Subject: less specific glob --- custom/notify-user.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'custom/notify-user.nix') 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 { main = do setCurrentDirectory "/" - (envFile:_) <- glob "/home/${user}/.dbus/session-bus/*-0" + (envFile:_) <- glob "/home/${user}/.dbus/session-bus/*" sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr proc "${libnotify}/bin/notify-send" =<< getArgs -- cgit v1.2.3