Esempio n. 1
0
def read_config(update_file: bool = False) -> dict:
    default = {
        'db_updater': {
            'interval': 60 * 20,
            'enabled': True
        }
    }
    return read(CONFIG_FILE, default, update_file=update_file)
Esempio n. 2
0
def read_config(update_file: bool = False) -> dict:
    template = {
        'optimize': True,
        'transitive_checking': True,
        "sync_databases": True,
        "simple_checking": False
    }
    return read(CONFIG_FILE, template, update_file=update_file)
Esempio n. 3
0
def read_config(update_file: bool = False) -> dict:
    default = {
        'gems': None,
        'memory_cache': {
            'data_expiration': 60 * 60,
            'icon_expiration': 60 * 5
        },
        'locale': None,
        'updates': {
            'check_interval': 30,
            'ask_for_reboot': True
        },
        'system': {
            'notifications': True,
            'single_dependency_checking': False
        },
        'suggestions': {
            'enabled': True,
            'by_type': 10
        },
        'ui': {
            'table': {
                'max_displayed': 50
            },
            'tray': {
                'default_icon': None,
                'updates_icon': None
            },
            'style': None,
            'hdpi': True,
            "auto_scale": False,
            "scale_factor": 1.0
        },
        'download': {
            'multithreaded': True,
            'multithreaded_client': None,
            'icons': True
        },
        'store_root_password': True,
        'disk': {
            'trim': {
                'after_upgrade': False
            }
        },
        'backup': {
            'enabled': True,
            'install': None,
            'uninstall': None,
            'downgrade': None,
            'upgrade': None,
            'mode': 'incremental',
            'type': 'rsync'
        }
    }
    return read(FILE_PATH, default, update_file=update_file, update_async=True)
Esempio n. 4
0
def read_config(update_file: bool = False) -> dict:
    default_config = {
        'environment': {
            'system': False,
            'electron': {
                'version': None
            }
        }
    }

    return read(CONFIG_FILE, default_config, update_file)
Esempio n. 5
0
def read_config(update_file: bool = False) -> dict:
    template = {
        'optimize': True,
        "sync_databases": True,
        "clean_cached": True,
        'aur': True,
        'repositories': True,
        "refresh_mirrors_startup": False,
        "sync_databases_startup": True,
        'mirrors_sort_limit': 5
    }
    return read(CONFIG_FILE, template, update_file=update_file)
Esempio n. 6
0
def read_config(update_file: bool = False) -> dict:
    default = {
        'gems': None,
        'memory_cache': {
            'data_expiration': 60 * 60,
            'icon_expiration': 60 * 5
        },
        'locale': None,
        'updates': {
            'check_interval': 30,
            'sort_packages': True,
            "pre_dependency_checking": True
        },
        'system': {
            'notifications': True,
            'single_dependency_checking': False
        },
        'disk_cache': {
            'enabled': True
        },
        'suggestions': {
            'enabled': True,
            'by_type': 10
        },
        'ui': {
            'table': {
                'max_displayed': 50
            },
            'tray': {
                'default_icon': None,
                'updates_icon': None
            },
            'style': None,
            'hdpi': True,
            "auto_scale": False
        },
        'download': {
            'multithreaded': True,
            'icons': True
        }
    }
    return read(FILE_PATH, default, update_file=update_file, update_async=True)
Esempio n. 7
0
def read_config(update_file: bool = False) -> dict:
    template = {
        'optimize': True,
        "sync_databases": True,
        "clean_cached": True,
        'aur': True,
        'repositories': True,
        "refresh_mirrors_startup": False,
        "sync_databases_startup": True,
        'mirrors_sort_limit': 5,
        'repositories_mthread_download': False,
        'automatch_providers': True,
        'edit_aur_pkgbuild': False,
        'aur_build_dir': None,
        'aur_remove_build_dir': True,
        'aur_build_only_chosen': True,
        'check_dependency_breakage': True,
        'suggest_unneeded_uninstall': False,
        'suggest_optdep_uninstall': False
    }
    return read(CONFIG_FILE, template, update_file=update_file)
Esempio n. 8
0
def read_config(update_file: bool = False) -> dict:
    template = {'installation_level': None}
    return read(CONFIG_FILE, template, update_file=update_file)
Esempio n. 9
0
def read_config(update_file: bool = False) -> dict:
    default = {'db_updater': {'interval': 60 * 20, 'enabled': True}}
    return read('{}/appimage.yml'.format(CONFIG_PATH),
                default,
                update_file=update_file)
Esempio n. 10
0
def read_config(update_file: bool = False) -> dict:
    template = {'install_channel': False}
    return read(CONFIG_FILE, template, update_file=update_file)