[gem.appimage] improvement: hiding the app's launching output

This commit is contained in:
Vinicius Moreira
2021-08-23 14:32:23 -03:00
parent 895ec7c643
commit 23731c7434
2 changed files with 5 additions and 3 deletions

View File

@@ -10,7 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- manual installation
- adding generic file filter extension (.*) since some desktop environments filters are case sensitive (https://github.com/vinifmor/bauh/issues/185)[#185]
- generating a default **.desktop** file based on the installation form for AppImage files that provide empty desktop entries (https://github.com/vinifmor/bauh/issues/186)[#186]
- hiding the app's launching output
### Fixes
- AppImage
- search: not matching manually installed applications

View File

@@ -219,7 +219,7 @@ class AppImageManager(SoftwareManager):
installed = self.read_installed(connection=apps_conn, disk_loader=disk_loader, limit=limit, only_apps=False, pkg_types=None, internet_available=True).installed
except:
installed = None
installed_found = []
if installed:
@@ -715,7 +715,8 @@ class AppImageManager(SoftwareManager):
appimag_path = util.find_appimage_file(installation_dir)
if appimag_path:
subprocess.Popen(args=[appimag_path], shell=True, env={**os.environ})
subprocess.Popen(args=[appimag_path], shell=True, env={**os.environ},
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL)
else:
self.logger.error("Could not find the AppImage file of '{}' in '{}'".format(pkg.name, installation_dir))