diff --git a/bauh/gems/flatpak/__init__.py b/bauh/gems/flatpak/__init__.py index 70096bb5..2212e314 100644 --- a/bauh/gems/flatpak/__init__.py +++ b/bauh/gems/flatpak/__init__.py @@ -9,8 +9,8 @@ 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' -CONFIG_DIR = f'{CONFIG_PATH}/flatpak' -UPDATES_IGNORED_FILE = f'{CONFIG_DIR}/updates_ignored.txt' +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') diff --git a/bauh/gems/flatpak/controller.py b/bauh/gems/flatpak/controller.py index 2cfe2977..929ab211 100644 --- a/bauh/gems/flatpak/controller.py +++ b/bauh/gems/flatpak/controller.py @@ -21,7 +21,7 @@ from bauh.api import user from bauh.commons.boot import CreateConfigFile from bauh.commons.html import strip_html, bold from bauh.commons.system import ProcessHandler -from bauh.gems.flatpak import flatpak, SUGGESTIONS_FILE, CONFIG_FILE, UPDATES_IGNORED_FILE, CONFIG_DIR, EXPORTS_PATH, \ +from bauh.gems.flatpak import flatpak, SUGGESTIONS_FILE, CONFIG_FILE, UPDATES_IGNORED_FILE, FLATPAK_CONFIG_DIR, EXPORTS_PATH, \ get_icon_path, VERSION_1_5, VERSION_1_2 from bauh.gems.flatpak.config import FlatpakConfigManager from bauh.gems.flatpak.constants import FLATHUB_API_URL @@ -689,7 +689,7 @@ class FlatpakManager(SoftwareManager): return ignored def _write_ignored_updates(self, keys: Set[str]): - Path(CONFIG_DIR).mkdir(parents=True, exist_ok=True) + Path(FLATPAK_CONFIG_DIR).mkdir(parents=True, exist_ok=True) ignored_list = [*keys] ignored_list.sort()