From 615d4cb8b06abc7ae16cffe5b9999381a438d1d9 Mon Sep 17 00:00:00 2001 From: Bas van den Wollenberg Date: Wed, 22 Jun 2022 21:36:58 +0200 Subject: [PATCH] Fix Microsoft kernel detection for WSL 2 (#64) --- lua/presence/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/presence/init.lua b/lua/presence/init.lua index 58edf3b..966fded 100644 --- a/lua/presence/init.lua +++ b/lua/presence/init.lua @@ -84,7 +84,7 @@ function Presence:setup(options) local os_name = self.get_os_name(uname) self.os = { name = os_name, - is_wsl = uname.release:find("Microsoft") ~= nil, + is_wsl = uname.release:lower():find("microsoft") ~= nil, path_separator = separator, }