From db0e24e2be62d7bea395fc7bb55386fac5cd5f6a Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Mon, 23 Aug 2021 09:31:23 -0300 Subject: [PATCH] [gem.appimage] improvement: mapping the 'Description' field as the 'Comment' field for generated .desktop files --- bauh/gems/appimage/model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bauh/gems/appimage/model.py b/bauh/gems/appimage/model.py index c8e28bd7..9d523745 100644 --- a/bauh/gems/appimage/model.py +++ b/bauh/gems/appimage/model.py @@ -133,6 +133,9 @@ class AppImage(SoftwarePackage): de = StringIO() de.write("[Desktop Entry]\nType=Application\nName={}\n".format(self.name)) + if self.description: + de.write("Comment={}\n".format(self.description.replace('\n', ' '))) + if self.install_dir and self.local_file_path: de.write('Exec="{}/{}"\n'.format(self.install_dir, self.local_file_path.split('/')[-1]))