Skip to content

Commit

Permalink
Create usr/share/metainfo/ before trying to write there
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Dec 20, 2016
1 parent 6660085 commit 90ee366
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions appimagetool.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ main (int argc, char *argv[])
fprintf (stderr, " for more information.\n");
/* As a courtesy, generate one to be filled by the user */
if(g_find_program_in_path ("appstream-util")) {
gchar *appdata_dir = g_build_filename(source, "/usr/share/metainfo/", NULL);
g_mkdir_with_parents(appdata_dir, 0755);
sprintf (command, "%s appdata-from-desktop %s %s", g_find_program_in_path ("appstream-util"), desktop_file, appdata_path);
int ret = system(command);
if (ret != 0)
Expand Down

0 comments on commit 90ee366

Please sign in to comment.