Skip to content

Commit 9a95c6c

Browse files
committed
Solve crash when starting app that is only on appfs
1 parent 40be8d0 commit 9a95c6c

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

main/app_metadata_parser.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,13 @@ size_t create_list_of_apps_from_other_appfs_entries(app_t** out_list, size_t lis
302302
}
303303

304304
if (!already_in_list) {
305-
app_t* app = calloc(1, sizeof(app_t));
306-
app->slug = strdup(slug);
307-
app->name = strdup(name);
308-
app->version = version;
309-
app->icon = calloc(1, sizeof(pax_buf_t));
305+
app_t* app = calloc(1, sizeof(app_t));
306+
app->slug = strdup(slug);
307+
app->name = strdup(name);
308+
app->path = strdup("");
309+
app->version = version;
310+
app->icon = calloc(1, sizeof(pax_buf_t));
311+
app->executable_type = EXECUTABLE_TYPE_APPFS;
310312
if (app->icon != NULL) {
311313
pax_buf_init(app->icon, NULL, 32, 32, PAX_BUF_32_8888ARGB);
312314
pax_draw_image(app->icon, get_icon(ICON_APP), 0, 0);

main/menu/apps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void execute_app(pax_buf_t* buffer, gui_theme_t* theme, pax_vec2_t position, app
127127
}
128128
default:
129129
message_dialog(get_icon(ICON_ERROR), "Error", "Unknown executable type", "OK");
130-
return;
130+
break;
131131
}
132132
}
133133

0 commit comments

Comments
 (0)