[appimage] refactoring: installed AppImages are now stored at '/usr/local/share/bauh' for the root user

This commit is contained in:
Vinicius Moreira
2021-11-29 10:38:21 -03:00
parent b3c1e72717
commit 0ecbb28219
4 changed files with 5 additions and 3 deletions

View File

@@ -3,11 +3,11 @@ from pathlib import Path
from typing import Optional
from bauh import __app_name__
from bauh.api.paths import CONFIG_DIR, TEMP_DIR, CACHE_DIR, BINARIES_DIR
from bauh.api.paths import CONFIG_DIR, TEMP_DIR, CACHE_DIR, BINARIES_DIR, SHARED_FILES_DIR
from bauh.commons import resource
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
LOCAL_PATH = f'{Path.home()}/.local/share/{__app_name__}/appimage'
LOCAL_PATH = f'{SHARED_FILES_DIR}/appimage'
INSTALLATION_PATH = f'{LOCAL_PATH}/installed/'
SUGGESTIONS_FILE = f'https://raw.githubusercontent.com/vinifmor/{__app_name__}-files/master/appimage/suggestions.txt'
CONFIG_FILE = f'{CONFIG_DIR}/appimage.yml'