We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96e5f34 commit cdabd7fCopy full SHA for cdabd7f
src/portal/runtime/browser.cljc
@@ -77,20 +77,23 @@
77
(str/trim (:out (shell/sh "cmd.exe" "/C" "echo %USERNAME%"))))
78
79
(defn- windows-chrome-web-applications []
80
- (some
+ (mapcat
81
(fn [root]
82
(tree-seq
83
(fn [f]
84
(and (not (fs/is-file f))
85
(or
86
(str/includes? f "_crx_")
87
(str/ends-with? f "Web Applications"))))
88
- (fn [d] (fs/list d))
+ (fn [d]
89
+ (try
90
+ (fs/list d)
91
+ (catch #?(:cljs :default :default Exception) _)))
92
(fs/join
93
root
94
(get-windows-user)
95
"AppData/Local/Google/Chrome/User Data/Default/Web Applications")))
- ["/Users" "/mnt/c/Users"]))
96
+ ["/mnt/c/Users" "/Users"]))
97
98
(defn- get-app-id-profile-windows [app-name]
99
(try
0 commit comments