mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-22 19:58:26 +00:00
make broader check for WSL on notifications (#68)
This commit is contained in:
1 parent
321f4bbe9d
commit
c6f1858ca0
1 file changed
+1
-1
@@ -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 ()
|
||||
|
||||
Reference in new issue
Block a user