make broader check for WSL on notifications (#68)

This commit is contained in:
Efim Poberezkin
2021-07-02 00:37:19 +10:00
committed by GitHub
parent 321f4bbe9d
commit c6f1858ca0

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 ()