Skip to content

Commit e8a1883

Browse files
authored
Check for Categories=, closes #909
1 parent 5f15512 commit e8a1883

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/appimagetool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ main (int argc, char *argv[])
658658
GKeyFile *kf = g_key_file_new ();
659659
if (!g_key_file_load_from_file (kf, desktop_file, G_KEY_FILE_KEEP_TRANSLATIONS | G_KEY_FILE_KEEP_COMMENTS, NULL))
660660
die(".desktop file cannot be parsed");
661+
if (!get_desktop_entry(kf, "Categories"))
662+
die(".desktop file is missing a Categories= key");
661663

662664
if(verbose){
663665
fprintf (stderr,"Name: %s\n", get_desktop_entry(kf, "Name"));

0 commit comments

Comments
 (0)