mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 09:54:14 +02:00
[flatpak] improvement: always considering 'system' as the installation level for the root user
This commit is contained in:
@@ -34,6 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
- Flatpak
|
- Flatpak
|
||||||
- settings: not displaying the installation target option when bauh is launched by the root user
|
- settings: not displaying the installation target option when bauh is launched by the root user
|
||||||
|
- always considering **system** as the installation level for the root user
|
||||||
|
|
||||||
- Web
|
- Web
|
||||||
- the Electron builds cache directory has been moved to the environment directory `~/.local/share/bauh/web/env/electron`
|
- the Electron builds cache directory has been moved to the environment directory `~/.local/share/bauh/web/env/electron`
|
||||||
|
|||||||
@@ -375,9 +375,11 @@ class FlatpakManager(SoftwareManager):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def install(self, pkg: FlatpakApplication, root_password: str, disk_loader: DiskCacheLoader, watcher: ProcessWatcher) -> TransactionResult:
|
def install(self, pkg: FlatpakApplication, root_password: str, disk_loader: DiskCacheLoader, watcher: ProcessWatcher) -> TransactionResult:
|
||||||
flatpak_config = self.configman.get_config()
|
if not self.context.root_user:
|
||||||
|
flatpak_config = self.configman.get_config()
|
||||||
install_level = flatpak_config['installation_level']
|
install_level = flatpak_config['installation_level']
|
||||||
|
else:
|
||||||
|
install_level = 'system'
|
||||||
|
|
||||||
if install_level is not None:
|
if install_level is not None:
|
||||||
self.logger.info("Default Flaptak installation level defined: {}".format(install_level))
|
self.logger.info("Default Flaptak installation level defined: {}".format(install_level))
|
||||||
|
|||||||
Reference in New Issue
Block a user