[api] refactoring: symlinks/binaries are now stored at /usr/local/bin for the root user

This commit is contained in:
Vinicius Moreira
2021-11-25 18:42:09 -03:00
parent 6f508ad10b
commit b3c1e72717
4 changed files with 5 additions and 3 deletions

View File

@@ -11,3 +11,4 @@ DESKTOP_ENTRIES_DIR = '/usr/share/applications' if user.is_root() else f'{Path.h
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'