diff options
-rw-r--r-- | custom/notify-user.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix index b3c5f766..68e267d6 100644 --- a/custom/notify-user.nix +++ b/custom/notify-user.nix | |||
@@ -10,7 +10,7 @@ stdenv.mkDerivation { | |||
10 | import System.FilePath.Glob (glob) | 10 | import System.FilePath.Glob (glob) |
11 | import System.Directory (setCurrentDirectory) | 11 | import System.Directory (setCurrentDirectory) |
12 | import System.Environment (setEnv, getArgs) | 12 | import System.Environment (setEnv, getArgs) |
13 | import System.Process (proc) | 13 | import System.Process (callProcess) |
14 | 14 | ||
15 | import Data.List (isPrefixOf) | 15 | import Data.List (isPrefixOf) |
16 | 16 | ||
@@ -19,7 +19,7 @@ stdenv.mkDerivation { | |||
19 | (envFile:_) <- glob "/home/${user}/.dbus/session-bus/*" | 19 | (envFile:_) <- glob "/home/${user}/.dbus/session-bus/*" |
20 | sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile | 20 | sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile |
21 | setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr | 21 | setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr |
22 | proc "${libnotify}/bin/notify-send" =<< getArgs | 22 | callProcess "${libnotify}/bin/notify-send" =<< getArgs |
23 | 23 | ||
24 | ''; }; | 24 | ''; }; |
25 | phases = [ "buildPhase" "installPhase" ]; | 25 | phases = [ "buildPhase" "installPhase" ]; |