Commit 84fbadc 1 parent 0c54c54 commit 84fbadc Copy full SHA for 84fbadc
File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 76
76
(defn- get-windows-user []
77
77
(str/trim (:out (shell/sh " cmd.exe" " /C" " echo %USERNAME%" ))))
78
78
79
+ (defn- windows-chrome-web-applications []
80
+ (tree-seq
81
+ (fn [f]
82
+ (and (not (fs/is-file f))
83
+ (or
84
+ (str/includes? f " _crx_" )
85
+ (str/ends-with? f " Web Applications" ))))
86
+ (fn [d] (fs/list d))
87
+ (fs/join
88
+ " /mnt/c/Users"
89
+ (get-windows-user )
90
+ " AppData/Local/Google/Chrome/User Data/Default/Web Applications" )))
91
+
79
92
(defn- get-app-id-profile-windows [app-name]
80
93
(try
81
94
(some
82
95
(fn [file]
83
96
(when (str/ends-with? file (str app-name " .lnk" ))
84
97
{:app-id (str/replace (fs/basename (fs/dirname file)) " _crx_" " " )}))
85
- (fs/file-seq
86
- (fs/join " /mnt/c/Users"
87
- (get-windows-user )
88
- " AppData/Local/Google/Chrome/User Data/Default/Web Applications" )))
98
+ (windows-chrome-web-applications ))
89
99
(catch #?(:cljs :default :default Exception) _)))
90
100
91
101
(defn- get-app-id-profile
You can’t perform that action at this time.
0 commit comments