mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[web] fix -> not informing the env vars during the launch process
This commit is contained in:
@@ -80,6 +80,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- minor fixes
|
- minor fixes
|
||||||
- Snap
|
- Snap
|
||||||
- some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall, launch)
|
- some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall, launch)
|
||||||
|
- Web
|
||||||
|
- some environment variable are not available during the launch process
|
||||||
- UI
|
- UI
|
||||||
- crashing when nothing can be upgraded
|
- crashing when nothing can be upgraded
|
||||||
- random C++ wrapper errors with some forms due to missing references
|
- random C++ wrapper errors with some forms due to missing references
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ from bauh.api.abstract.model import SoftwarePackage, CustomSoftwareAction, Packa
|
|||||||
from bauh.api.abstract.view import MessageType, MultipleSelectComponent, InputOption, SingleSelectComponent, \
|
from bauh.api.abstract.view import MessageType, MultipleSelectComponent, InputOption, SingleSelectComponent, \
|
||||||
SelectViewType, TextInputComponent, FormComponent, FileChooserComponent, ViewComponent, PanelComponent
|
SelectViewType, TextInputComponent, FormComponent, FileChooserComponent, ViewComponent, PanelComponent
|
||||||
from bauh.api.constants import DESKTOP_ENTRIES_DIR
|
from bauh.api.constants import DESKTOP_ENTRIES_DIR
|
||||||
from bauh.commons import resource, user
|
from bauh.commons import resource
|
||||||
from bauh.commons.config import save_config
|
from bauh.commons.config import save_config
|
||||||
from bauh.commons.html import bold
|
from bauh.commons.html import bold
|
||||||
from bauh.commons.system import ProcessHandler, get_dir_size, get_human_size_str, SimpleProcess
|
from bauh.commons.system import ProcessHandler, get_dir_size, get_human_size_str, SimpleProcess
|
||||||
@@ -949,7 +949,7 @@ class WebApplicationManager(SoftwareManager):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def launch(self, pkg: WebApplication):
|
def launch(self, pkg: WebApplication):
|
||||||
subprocess.Popen(pkg.get_command(), shell=user.is_root())
|
subprocess.Popen(args=[pkg.get_command()], shell=True, env={**os.environ})
|
||||||
|
|
||||||
def get_screenshots(self, pkg: SoftwarePackage) -> List[str]:
|
def get_screenshots(self, pkg: SoftwarePackage) -> List[str]:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user