[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,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- manual installation - manual installation
- adding generic file filter extension (.*) since some desktop environments filters are case sensitive (https://github.com/vinifmor/bauh/issues/185)[#185] - 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] - 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 ### Fixes
- AppImage - AppImage

View File

@@ -715,7 +715,8 @@ class AppImageManager(SoftwareManager):
appimag_path = util.find_appimage_file(installation_dir) appimag_path = util.find_appimage_file(installation_dir)
if appimag_path: 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: else:
self.logger.error("Could not find the AppImage file of '{}' in '{}'".format(pkg.name, installation_dir)) self.logger.error("Could not find the AppImage file of '{}' in '{}'".format(pkg.name, installation_dir))