From c6f1858ca0701129e5c0b897d6593f503fc65201 Mon Sep 17 00:00:00 2001 From: Efim Poberezkin <8711996+efim-poberezkin@users.noreply.github.com> Date: Fri, 2 Jul 2021 00:37:19 +1000 Subject: [PATCH] make broader check for WSL on notifications (#68) --- apps/dog-food/Notification.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dog-food/Notification.hs b/apps/dog-food/Notification.hs index 93bb14b7a2..4803b1ea0c 100644 --- a/apps/dog-food/Notification.hs +++ b/apps/dog-food/Notification.hs @@ -27,7 +27,7 @@ initializeNotifications = case os of False -> pure $ notify linuxScript True -> do v <- readFile "/proc/sys/kernel/osrelease" - if "wsl" `isInfixOf` map toLower v + if "Microsoft" `isInfixOf` v || "WSL" `isInfixOf` v then initWinNotify else pure $ notify linuxScript _ -> pure . const $ pure ()