|
|
@ -56,10 +56,11 @@ class GreeterConfig { |
|
|
|
* Holds keys/values from the `branding` section of the config file. |
|
|
|
* Holds keys/values from the `branding` section of the config file. |
|
|
|
* |
|
|
|
* |
|
|
|
* @type {object} branding |
|
|
|
* @type {object} branding |
|
|
|
* @prop {string} background_images |
|
|
|
* @prop {string} background_images Path to directory that contains background images |
|
|
|
* @prop {string} logo |
|
|
|
* for use in greeter themes. |
|
|
|
* @prop {string} user_image |
|
|
|
* @prop {string} logo Path to distro logo image for use in greeter themes. |
|
|
|
* |
|
|
|
* @prop {string} user_image Default user image/avatar. This is used by greeter themes |
|
|
|
|
|
|
|
* for users that have not configured a `.face` image. |
|
|
|
* @readonly |
|
|
|
* @readonly |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
get branding() { |
|
|
|
get branding() { |
|
|
@ -83,20 +84,23 @@ class GreeterConfig { |
|
|
|
* Holds keys/values from the `greeter` section of the config file. |
|
|
|
* Holds keys/values from the `greeter` section of the config file. |
|
|
|
* |
|
|
|
* |
|
|
|
* @type {object} greeter |
|
|
|
* @type {object} greeter |
|
|
|
* @prop {boolean} debug_mode |
|
|
|
* @prop {boolean} debug_mode Greeter theme debug mode. |
|
|
|
* @prop {boolean} secure_mode |
|
|
|
* @prop {boolean} detect_theme_errors Provide an option to load a fallback theme when theme |
|
|
|
* @prop {number} screensaver_timeout |
|
|
|
* errors are detected. |
|
|
|
* @prop {string} time_format |
|
|
|
* @prop {number} screensaver_timeout Blank the screen after this many seconds of inactivity. |
|
|
|
* @prop {string} time_language |
|
|
|
* @prop {boolean} secure_mode Don't allow themes to make remote http requests. |
|
|
|
* @prop {string} webkit_theme |
|
|
|
* @prop {string} time_format A moment.js format string to be used by the greeter to |
|
|
|
* |
|
|
|
* generate localized time for display. |
|
|
|
|
|
|
|
* @prop {string} time_language Language to use when displaying the time or `auto` |
|
|
|
|
|
|
|
* to use the system's language. |
|
|
|
|
|
|
|
* @prop {string} webkit_theme The name of the theme to be used by the greeter. |
|
|
|
* @readonly |
|
|
|
* @readonly |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
get greeter() { |
|
|
|
get greeter() { |
|
|
|
if ( null === _greeter ) { |
|
|
|
if ( null === _greeter ) { |
|
|
|
let bools = {'debug_mode': true, 'secure_mode': true}, |
|
|
|
let bools = {'debug_mode': false, 'secure_mode': true, 'detect_theme_errors': true}, |
|
|
|
strings = {'time_format': 'LT', 'time_language': 'auto', 'webkit_theme': 'antergos'}, |
|
|
|
strings = {'time_format': 'LT', 'time_language': 'auto', 'webkit_theme': 'antergos'}, |
|
|
|
numbers = {'screensaver_timeout': 30}; |
|
|
|
numbers = {'screensaver_timeout': 300}; |
|
|
|
|
|
|
|
|
|
|
|
_greeter = {}; |
|
|
|
_greeter = {}; |
|
|
|
|
|
|
|
|
|
|
|