[api] refactoring: adding AUTOSTART_DIR constant to 'paths' module

This commit is contained in:
Vinicius Moreira
2021-11-24 14:14:04 -03:00
parent 0c11c4c166
commit 530a5019e2
4 changed files with 6 additions and 4 deletions

View File

@@ -10,3 +10,4 @@ USER_THEMES_PATH = '{}/.local/share/bauh/themes'.format(str(Path.home()))
DESKTOP_ENTRIES_DIR = '{}/.local/share/applications'.format(str(Path.home()))
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'