|
|
@ -1205,15 +1205,13 @@ panel_add_launchers(struct panel *panel, struct desktop *desktop) |
|
|
|
|
|
|
|
|
|
|
|
if (icon != NULL && path != NULL) { |
|
|
|
if (icon != NULL && path != NULL) { |
|
|
|
panel_add_launcher(panel, icon, path); |
|
|
|
panel_add_launcher(panel, icon, path); |
|
|
|
|
|
|
|
count++; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
fprintf(stderr, "invalid launcher section\n"); |
|
|
|
fprintf(stderr, "invalid launcher section\n"); |
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
free(icon); |
|
|
|
free(icon); |
|
|
|
free(path); |
|
|
|
free(path); |
|
|
|
|
|
|
|
|
|
|
|
count++; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (count == 0) { |
|
|
|
if (count == 0) { |
|
|
|