[web] refactoring the config reading code

This commit is contained in:
Vinícius Moreira
2019-12-18 17:03:39 -03:00
parent b1e1fe5918
commit 6dba32cebe
3 changed files with 34 additions and 27 deletions

View File

@@ -134,13 +134,13 @@ will be pre-downloaded faster ( it does **NOT** modify your **pacman** settings
#### Web Applications ( web )
- It allows the installation of native Web applications by typing an address / URL in the search bar.
- It also offers the possibility to customize the app to be generated the way you want: [TODO image or video]
- It also offers the possibility to customize the generated app the way you want: [TODO image or video]
- It also provides some suggestions coming with predefined settings, and they also can be retrieved by searching their names. They are
defined at [suggestions.yml](https://github.com/vinifmor/bauh-files/blob/master/web/suggestions.yml), and downloaded during the application usage.
- It relies on [NodeJS](https://nodejs.org/en/), [Electron](https://electronjs.org/) and [nativefier](https://github.com/jiahaog/nativefier) to do all the magic, but you do not need them installed on your system. An isolated installation environment
will be generated at **~/.local/share/bauh/web/env**.
- The isolated environment is generated based on the settings defined in [environment.yml](https://github.com/vinifmor/bauh-files/blob/master/web/environment.yml)
that is downloaded during runtime.
- The isolated environment is created based on the settings defined in [environment.yml](https://github.com/vinifmor/bauh-files/blob/master/web/environment.yml)
( downloaded during runtime ).
- Some applications require Javascript fixes to properly work. If it is a known fix, bauh will download the file JS file from [fix](https://github.com/vinifmor/bauh-files/tree/master/web/fix) and
install it with the generated app.
- The installed applications are located at **~/.local/share/bauh/installed**.
@@ -148,12 +148,12 @@ install it with the generated app.
- When the Tray Mode **Start Minimized** is defined during the installation setup, a desktop entry will be also generated at **~/.config/autostart**
allowing the application to launch automatically attached to system tray after the boot.
- The configuration file for the Web apps support is located at **~/.config/bauh/web.yml** and it allows the following customizations:
`
```
environment:
electron:
version: null # set a custom Electron version here ( e.g: '6.1.4' )
system: false # set it to 'true' if you want to use the nativefier version globally installed on your system
`
```
- Required packages: Arch systems ( **python-lxml**, **python-beautifulsoup4** ), Debian systems ( you will need to install the following packages with pip: **beautifulsoup4**, **lxml** )
### General settings