Documentation ¶
Overview ¶
paths manages the paths to the various files Armaria cares about. Armaria stores its bookmarks in a SQLite DB and its config in a TOML file. Both of these files need to be stored somewhere. This file contains the logic to figure out where to store those files. It also keeps track of where manifest files need to be installed for browser extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChromeManifest ¶
ChromeManifest gets the path to the Chrome app manifest. The path is different per platform and maps to the following: - Linux: ~/.config/google-chrome/NativeMessagingHosts - Windows: ~/AppData/Local/Armaria - Mac: ~/Library/Application Support/Google/Chrome
func ChromiumManifest ¶ added in v0.0.7
Chromium Manifest gets the path to the Chromium app manifest. The path is different per platform and maps to the following: - Linux: ~/.config/chromium/NativeMessagingHosts - Windows: ~/AppData/Local/Armaria - Mac: ~/Library/Application Support/Chromium
func Config ¶
Config gets the path to the config file. The config file is a TOML file located at getFolderPath() + "bookmarks.db".
func Database ¶
func Database(inputPath null.NullString, configPath string) (string, error)
Database gets the path to the bookmarks database. The path will be (in order of precedence): 1) The inputted path 2) The path in the config file 3) The default path (getFolderPath() + "bookmarks.db")
func FirefoxManifest ¶
FirefoxManifest gets the path to the Firefox app manifest. The path is different per platform and maps to the following: - Linux: ~/.mozilla/native-messaging-hosts - Windows: ~/AppData/Local/Armaria - Mac: ~/Library/Application Support/Mozilla/NativeMessagingHosts
Types ¶
This section is empty.