We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2d4d7 commit e8df637Copy full SHA for e8df637
appimagetool.c
@@ -433,6 +433,11 @@ main (int argc, char *argv[])
433
434
/* Check if .DirIcon is present in source AppDir */
435
gchar *diricon_path = g_build_filename(source, ".DirIcon", NULL);
436
+
437
+ if (! g_file_test(diricon_path, G_FILE_TEST_EXISTS)){
438
+ fprintf (stderr, "Deleting pre-existing .DirIcon\n");
439
+ g_unlink(diricon_path);
440
+ }
441
if (! g_file_test(diricon_path, G_FILE_TEST_IS_REGULAR)){
442
fprintf (stderr, "Creating .DirIcon symlink based on information from desktop file\n");
443
int res = symlink(basename(icon_file_path), diricon_path);
0 commit comments