diff --git a/applications/main/archive/scenes/archive_scene_browser.c b/applications/main/archive/scenes/archive_scene_browser.c index 0cf59e30a..a72a24e31 100644 --- a/applications/main/archive/scenes/archive_scene_browser.c +++ b/applications/main/archive/scenes/archive_scene_browser.c @@ -63,6 +63,14 @@ static void archive_run_in_app(ArchiveBrowserView* browser, ArchiveFile_t* selec char* result = malloc(strlen(tmpType) + strlen(furi_string_get_cstr(selected->path)) + 1); + strcpy(result, tmpType); + strcat(result, furi_string_get_cstr(selected->path)); + status = loader_start(loader, "Applications", result); + } else if(strcmp(flipper_app_name[selected->type], "Bad USB") == 0) { + char* tmpType = "/ext/apps/Main/bad_usb.fap¯"; + char* result = + malloc(strlen(tmpType) + strlen(furi_string_get_cstr(selected->path)) + 1); + strcpy(result, tmpType); strcat(result, furi_string_get_cstr(selected->path)); status = loader_start(loader, "Applications", result);