[flatpak] improvement -> Creating the exports path '~/.local/share/flatpak/exports/share' (if it does not exist) and adding it to install/upgrade/downgrade/remove commands path to prevent warning messages

This commit is contained in:
Vinicius Moreira
2020-08-11 11:08:09 -03:00
parent b68a21894e
commit 57c88f9589
5 changed files with 46 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
import os
from pathlib import Path
from bauh.api.constants import CONFIG_PATH
@@ -7,3 +8,4 @@ SUGGESTIONS_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master
CONFIG_FILE = '{}/flatpak.yml'.format(CONFIG_PATH)
CONFIG_DIR = '{}/flatpak'.format(CONFIG_PATH)
UPDATES_IGNORED_FILE = '{}/updates_ignored.txt'.format(CONFIG_DIR)
EXPORTS_PATH = '{}/.local/share/flatpak/exports/share'.format(str(Path.home()))