Skip to content

Commit

Permalink
Fall back to GenericName field if Comment field is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdfhjxc authored and gornostal committed Apr 12, 2020
1 parent 7394484 commit ee9e9da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ulauncher/search/apps/AppDb.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def put_app(self, app):
name = app.get_string('X-GNOME-FullName') or app.get_name()
description = app.get_description() or ''
exec_name = app.get_string('Exec') or ''
description = app.get_description() or ''
if not description and (app.get_generic_name() != name):
description = app.get_generic_name() or ''
record = {
"desktop_file": app.get_filename(),
"desktop_file_short": os.path.basename(app.get_filename()),
Expand Down

0 comments on commit ee9e9da

Please sign in to comment.