Permalink
Browse files

Create usr/share/metainfo/ before trying to write there

  • Loading branch information...
1 parent 6660085 commit 90ee36655337ce4a94c260f3525e6160e8ccd370 @probonopd committed on GitHub Dec 20, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 appimagetool.c
View
@@ -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)

0 comments on commit 90ee366

Please sign in to comment.