Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1019816 // mozillaConfigBaseDir

JavaX fragment (include)

static File mozillaConfigBaseDir() {
  if (isWindows())
    ret newFile(newFile(System.getenv("APPDATA")), "Mozilla/Firefox");
  else if (isMac())
    ret oneOfTheDirs(
      userDir("Library/Application Support/Firefox"),
      userDir("Library/Mozilla/Firefox")); 
  else
    ret userDir(".mozilla/firefox");
}

Author comment

Began life as a copy of #1019814

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019816
Snippet name: mozillaConfigBaseDir
Eternal ID of this version: #1019816/2
Text MD5: 4a574977d7f4d995c0b9637143df4f0c
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:51
Source code size: 321 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 350 / 361
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030135 - imagesDir - incomplete, may return null