[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

@@ -12,3 +12,4 @@ TEMP_DIR = f'/tmp/{__app_name__}@{getuser()}'
LOGS_DIR = f'{TEMP_DIR}/logs'
AUTOSTART_DIR = f'/etc/xdg/autostart' if user.is_root() else f'{Path.home()}/.config/autostart'
BINARIES_DIR = f'/usr/local/bin' if user.is_root() else f'{Path.home()}/.local/bin'
SHARED_FILES_DIR = f'/usr/local/share/{__app_name__}' if user.is_root() else f'{Path.home()}/.local/share/{__app_name__}'