mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[gem.appimage] improvement: mapping the 'Description' field as the 'Comment' field for generated .desktop files
This commit is contained in:
@@ -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]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user