static File mozillaDefaultProfileDir() { File base = mozillaConfigBaseDir(); new Matches m; S path = null; for (S s : lines(loadTextFile(newFile(base, "profiles.ini")))) { // TODO: Does IsRelative=0 work? if (startsWith(s, "Path=", m)) path = m.rest(); else if (eq(s, "Default=1")) ret path == null ? null : isAbsolutePath(path) ? newFile(path) : newFile(base, path); } null; }
download show line numbers debug dex old transpilations
Travelled to 10 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019814 |
Snippet name: | mozillaDefaultProfileDir |
Eternal ID of this version: | #1019814/3 |
Text MD5: | 4c184cfa5410b01d3a21ece64028d87d |
Author: | stefan |
Category: | javax / firefox |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-27 00:23:01 |
Source code size: | 425 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 342 / 383 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1019816 - mozillaConfigBaseDir |