Skip to content

Commit 90ee366

Browse files
authored
Create usr/share/metainfo/ before trying to write there
1 parent 6660085 commit 90ee366

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

appimagetool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ main (int argc, char *argv[])
453453
fprintf (stderr, " for more information.\n");
454454
/* As a courtesy, generate one to be filled by the user */
455455
if(g_find_program_in_path ("appstream-util")) {
456+
gchar *appdata_dir = g_build_filename(source, "/usr/share/metainfo/", NULL);
457+
g_mkdir_with_parents(appdata_dir, 0755);
456458
sprintf (command, "%s appdata-from-desktop %s %s", g_find_program_in_path ("appstream-util"), desktop_file, appdata_path);
457459
int ret = system(command);
458460
if (ret != 0)

0 commit comments

Comments
 (0)