Skip to content

Commit cdabd7f

Browse files
committed
Fix WSL regression caused by 73e0070
1 parent 96e5f34 commit cdabd7f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/portal/runtime/browser.cljc

+6-3
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,23 @@
7777
(str/trim (:out (shell/sh "cmd.exe" "/C" "echo %USERNAME%"))))
7878

7979
(defn- windows-chrome-web-applications []
80-
(some
80+
(mapcat
8181
(fn [root]
8282
(tree-seq
8383
(fn [f]
8484
(and (not (fs/is-file f))
8585
(or
8686
(str/includes? f "_crx_")
8787
(str/ends-with? f "Web Applications"))))
88-
(fn [d] (fs/list d))
88+
(fn [d]
89+
(try
90+
(fs/list d)
91+
(catch #?(:cljs :default :default Exception) _)))
8992
(fs/join
9093
root
9194
(get-windows-user)
9295
"AppData/Local/Google/Chrome/User Data/Default/Web Applications")))
93-
["/Users" "/mnt/c/Users"]))
96+
["/mnt/c/Users" "/Users"]))
9497

9598
(defn- get-app-id-profile-windows [app-name]
9699
(try

0 commit comments

Comments
 (0)