From 815b0ad484dbc42758e93e7a718702e0bc02903e Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 6 Sep 2019 10:54:03 -0300 Subject: [PATCH] fix --- README.md | 2 +- bauh/app.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 58153899..f22e05da 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ You can change some application settings via environment variables or arguments - **BAUH_CHECK_PACKAGING_ONCE**: If the available supported packaging types should be checked ONLY once. It improves the application speed if enabled, but can generate errors if you uninstall any packaging technology while using it, and every time a supported packaging type is installed it will only be available after a restart. Use **0** (disable, default) or **1** (enable). - **BAUH_TRAY**: If the tray icon and update-check daemon should be created. Use **0** (disable, default) or **1** (enable). - **BAUH_SUGGESTIONS**: If application suggestions should be displayed if no app is installed (runtimes do not count as apps). Use **0** (disable) or **1** (enable, default). -- **BAUH_THEME**: +- **BAUH_THEME**: Define a custom QT theme (style) for the application. If not defined, it will be using breeze or fusion depending on your desktop environment. ### How to improve the application performance - If you don't care about a specific packaging technology and don't want the app to deal with it, just disable it via the specific argument or environment variable. For instance, if I don't care diff --git a/bauh/app.py b/bauh/app.py index 287ee18a..905e6580 100755 --- a/bauh/app.py +++ b/bauh/app.py @@ -47,7 +47,7 @@ parser.add_argument('--snap', action="store", default=os.getenv('BAUH_SNAP', 1), parser.add_argument('-co', '--check-packaging-once', action="store", default=os.getenv('BAUH_CHECK_PACKAGING_ONCE', 0), choices=[0, 1], type=int, help='If the available supported packaging types should be checked ONLY once. It improves the application speed if enabled, but can generate errors if you uninstall any packaging technology while using it, and every time a supported packaging type is installed it will only be available after a restart. Default: %(default)s') parser.add_argument('--tray', action="store", default=os.getenv('BAUH_TRAY', 0), choices=[0, 1], type=int, help='If the tray icon and update-check daemon should be created. Default: %(default)s') parser.add_argument('--sugs', action="store", default=os.getenv('BAUH_SUGGESTIONS', 1), choices=[0, 1], type=int, help='If app suggestions should be displayed if no app is installed (runtimes do not count as apps). Default: %(default)s') -parser.add_argument('--theme', action="store", default=os.getenv('BAUH_THEME'), type=str, help='Define a custom QT theme (style) for the application. If not defined, it will be using breeze or fusion depending on your desktop environment') +parser.add_argument('--theme', action="store", default=os.getenv('BAUH_THEME'), type=str, help='Define a custom QT theme (style) for the application. If not defined, it will be using breeze or fusion depending on your desktop environment.') args = parser.parse_args() if args.cache_exp < 0: @@ -122,7 +122,7 @@ app.setWindowIcon(QIcon(resource.get_path('img/logo.svg'))) if args.theme: app.setStyle(args.theme) -elif not app.style().objectName().lower() not in {'fusion', 'breeze'}: +elif app.style().objectName().lower() not in {'fusion', 'breeze'}: app.setStyle('fusion') screen_size = app.primaryScreen().size()