From 22585cdf070a6ce1831cff1a11e0a92884132277 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 21 Jul 2016 22:02:10 +0200 Subject: escape is futile --- custom/notify-user.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/custom/notify-user.nix b/custom/notify-user.nix index 808d1615..e5f001f3 100644 --- a/custom/notify-user.nix +++ b/custom/notify-user.nix @@ -21,10 +21,7 @@ stdenv.mkDerivation { forM_ envFiles $ \envFile -> do sessionAddr <- tail . snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr - callProcess "${libnotify}/bin/notify-send" =<< (++) <$> getArgs <*> (pure . concatMap escape . dropWhileEnd isSpace <$> getContents) - where - escape '\\' = "\\\\" - escape x = pure x + callProcess "${libnotify}/bin/notify-send" =<< (++) <$> getArgs <*> (pure . dropWhileEnd isSpace <$> getContents) ''; }; phases = [ "buildPhase" "installPhase" ]; buildPhase = '' -- cgit v1.2.3