[gem.appimage] improvement: mapping the 'Description' field as the 'Comment' field for generated .desktop files

This commit is contained in:
Vinicius Moreira
2021-08-23 09:31:23 -03:00
parent a2f44d9542
commit db0e24e2be

View File

@@ -133,6 +133,9 @@ class AppImage(SoftwarePackage):
de = StringIO() de = StringIO()
de.write("[Desktop Entry]\nType=Application\nName={}\n".format(self.name)) 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: if self.install_dir and self.local_file_path:
de.write('Exec="{}/{}"\n'.format(self.install_dir, self.local_file_path.split('/')[-1])) de.write('Exec="{}/{}"\n'.format(self.install_dir, self.local_file_path.split('/')[-1]))