Skip to content

Commit

Permalink
Fix WSL regression caused by 73e0070
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Dec 23, 2024
1 parent 96e5f34 commit cdabd7f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/portal/runtime/browser.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,23 @@
(str/trim (:out (shell/sh "cmd.exe" "/C" "echo %USERNAME%"))))

(defn- windows-chrome-web-applications []
(some
(mapcat
(fn [root]
(tree-seq
(fn [f]
(and (not (fs/is-file f))
(or
(str/includes? f "_crx_")
(str/ends-with? f "Web Applications"))))
(fn [d] (fs/list d))
(fn [d]
(try
(fs/list d)
(catch #?(:cljs :default :default Exception) _)))
(fs/join
root
(get-windows-user)
"AppData/Local/Google/Chrome/User Data/Default/Web Applications")))
["/Users" "/mnt/c/Users"]))
["/mnt/c/Users" "/Users"]))

(defn- get-app-id-profile-windows [app-name]
(try
Expand Down

0 comments on commit cdabd7f

Please sign in to comment.