make broader check for WSL on notifications (#68)

This commit is contained in:
Efim Poberezkin authored and GitHub committed 2021-07-02 00:37:19 +10:00
1 parent 321f4bbe9d
commit c6f1858ca0
1 file changed
+1 -1
+1 -1
View File
@@ -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 ()