[api] refactoring: custom themes dir for root user is now /usr/share/bauh/themes

This commit is contained in:
Vinicius Moreira
2021-11-25 15:57:59 -03:00
parent 985657987f
commit 25c9ed9fa3
4 changed files with 5 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ from bauh.api import user
CACHE_PATH = f'/var/cache/{__app_name__}' if user.is_root() else f'{Path.home()}/.cache/{__app_name__}'
CONFIG_DIR = f'/etc/{__app_name__}' if user.is_root() else f'{Path.home()}/.config/{__app_name__}'
USER_THEMES_PATH = '{}/.local/share/bauh/themes'.format(str(Path.home()))
USER_THEMES_DIR = f'/usr/share/{__app_name__}/themes' if user.is_root() else f'{Path.home()}/.local/share/{__app_name__}/themes'
DESKTOP_ENTRIES_DIR = '{}/.local/share/applications'.format(str(Path.home()))
TEMP_DIR = f'/tmp/{__app_name__}@{getuser()}'
LOGS_DIR = f'{TEMP_DIR}/logs'