From b1d26335921665eab90480ec4271bcf12adcfd4a Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Mon, 29 Nov 2021 12:13:03 -0300 Subject: [PATCH] [web] improvement: installed applications are now stored at '/usr/local/share/bauh/web/installed' for the root user --- bauh/gems/web/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bauh/gems/web/__init__.py b/bauh/gems/web/__init__.py index 9a36c050..43c33bc4 100644 --- a/bauh/gems/web/__init__.py +++ b/bauh/gems/web/__init__.py @@ -1,13 +1,12 @@ import os -from pathlib import Path from bauh import __app_name__ -from bauh.api.paths import DESKTOP_ENTRIES_DIR, CONFIG_DIR, TEMP_DIR, CACHE_DIR +from bauh.api.paths import DESKTOP_ENTRIES_DIR, CONFIG_DIR, TEMP_DIR, CACHE_DIR, SHARED_FILES_DIR from bauh.commons import resource from bauh.commons.util import map_timestamp_file ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) -WEB_PATH = f'{Path.home()}/.local/share/{__app_name__}/web' +WEB_PATH = f'{SHARED_FILES_DIR}/web' WEB_CACHE_DIR = f'{CACHE_DIR}/web' INSTALLED_PATH = f'{WEB_PATH}/installed' ENV_PATH = f'{WEB_PATH}/env'