API-Version: 1.9

data

Get internally used data like configuration files

Source:

Members

<static, readonly> bookmarks :String

The bookmark file

Source:

<static, readonly> cacheDir :String

The cache directory used by dwb

Source:

<static, readonly> configDir :String

The configuration diretory

Source:

<static, readonly> cookies :String

The cookie file

Source:

<static, readonly> cookiesWhitelist :String

The whitelist for persistent cookies

Source:

<static, readonly> customKeys :String

The custom keys file

Source:

<static, readonly> history :String

The history file

Source:

<static, readonly> keys :String

The keyboard configuration file

Source:

<static, readonly> pluginsWhitelist :String

The whitelist for plugins

Source:

<static, readonly> profile :String

Profile which will be default unless another profile is specified on command line

Source:

<static, readonly> quickmarks :String

The quickmarks file

Source:

<static, readonly> scriptWhitelist :String

The whitelist for scripts

Source:

<static, readonly> searchEngines :String

The searchengines file

Source:

<static, readonly> session :String

The session file

Source:

<static, readonly> sessionCookiesWhitelist :String

The whitelist for session cookies

Source:

<static, readonly> sessionName :String

The current session name, if 'save-session' is disabled and no session name is given on commandline it will always be "default"

Source:

<static, readonly> settings :String

The settings configuration file

Source:

<static, readonly> systemDataDir :String

The system data dir, for a default installation it is /usr/share/dwb

Source:

<static, readonly> userDataDir :String

The user data dir, in most cases it will be ~/.local/share/dwb

Source:

Methods

<static> parse(name) → {Array}

Parses data to an array

Parameters:
Name Type Description
name String

Name of the data to parse, can be one of bookmarks, cookiesWhitelist, sessionCookiesWhitelist, scriptWhitelist, pluginsWhitelist, quickmarks or searchEngines.

Source:
Returns:
  • Type
    Array
  • Array of parsed objects; quickmarks will return an array of objects with properties mark and url and searchEngines will return an array of objects with properties keyword, url and host. All other values will return an array of strings.