Files
bearhub/bauh/gems/flatpak/__init__.py

23 lines
788 B
Python

import os
from pathlib import Path
from packaging.version import parse as parse_version
from bauh.api.paths import CONFIG_PATH
from bauh.commons import resource
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
SUGGESTIONS_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/flatpak/suggestions.txt'
CONFIG_FILE = f'{CONFIG_PATH}/flatpak.yml'
FLATPAK_CONFIG_DIR = f'{CONFIG_PATH}/flatpak'
UPDATES_IGNORED_FILE = f'{FLATPAK_CONFIG_DIR}/updates_ignored.txt'
EXPORTS_PATH = '{}/.local/share/flatpak/exports/share'.format(str(Path.home()))
VERSION_1_2 = parse_version('1.2')
VERSION_1_3 = parse_version('1.3')
VERSION_1_4 = parse_version('1.4')
VERSION_1_5 = parse_version('1.5')
def get_icon_path() -> str:
return resource.get_path('img/flatpak.svg', ROOT_DIR)