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

9
LINES

< > BotCompany Repo | #1026341 // chromeBookmarksFile (tested on Linux and Windows)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9684L/53K).

static File chromeBookmarksFile() {
  File bookmarksDir =  isWindows()
    ? userDir_oneOf(
      "Local Settings/Application Data/Google/Chrome/User Data/Default",
      "AppData/Local/Google/Chrome/User Data/Default",
      )
    : userDir(".config/google-chrome/Default");
  ret fileIfExists(newFile(bookmarksDir, "Bookmarks"));
}

Author comment

Began life as a copy of #1003291

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026341
Snippet name: chromeBookmarksFile (tested on Linux and Windows)
Eternal ID of this version: #1026341/4
Text MD5: 0b11bc5881d4223d52b106859f14d92f
Transpilation MD5: 5f4aabf969ad9bc8fe47611f3292b69b
Author: stefan
Category: javax / native
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-04 22:59:09
Source code size: 341 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 251 / 345
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)