This returns the commandline that was used to start firefox. You'll get both firefox binary (not necessarily an absolute path) and flags
Fetches a config option from the config. If the option is undefined, fetch a preference from preferences. It would make more sense for this function to be in config.ts but this would require importing this file in config.ts and Webpack doesn't like circular dependencies.
Fetches a config option from the config. If the option is undefined, fetch prefName from the preferences. If prefName is undefined too, return a default.
Returns the value for the corresponding about:config setting
Returns a promise for an object that should contain every about:config setting.
Performance is slow so we need to cache the results.
When given the name of a firefox preference file, will load said file and return a promise for an object the keys of which correspond to preference names and the values of which correspond to preference values. When the file couldn't be loaded or doesn't contain any preferences, will return a promise for an empty object.
Used internally to gate off functions that use the native messenger. Gives a helpful error message in the command line if the native messenger is not installed, or is the wrong version.
false if the required version is higher than the currently available native messenger version.
Evaluates a string in the native messenger. This has to be python code. If you want to run shell strings, use run() instead.
Removes a preference from user.js
Posts using the one-time message API; native is killed after message returns
Obey Mozilla's orders https://github.com/tridactyl/tridactyl/issues/1800
Writes a preference to user.js
Calls an external program, to either set or get the content of the X selection. When setting the selection or if getting it failed, will return an empty string.