|
@@ -190,24 +190,18 @@ static void _menu_action_up(struct MenuEntry * entry) {
|
|
|
|
|
|
static void _menu_action_help(struct MenuEntry * entry) {
|
|
|
/* show help documentation */
|
|
|
- if (!fork()) {
|
|
|
- system("help-browser file-browser.trt");
|
|
|
- exit(0);
|
|
|
- }
|
|
|
+ system("help-browser file-browser.trt &");
|
|
|
redraw_window();
|
|
|
}
|
|
|
|
|
|
static void _menu_action_about(struct MenuEntry * entry) {
|
|
|
/* Show About dialog */
|
|
|
- if (!fork()) {
|
|
|
- char about_cmd[1024] = "\0";
|
|
|
- strcat(about_cmd, "about \"About File Browser\" /usr/share/icons/48/folder.bmp \"ToaruOS File Browser\" \"(C) 2018 K. Lange\n-\nPart of ToaruOS, which is free software\nreleased under the NCSA/University of Illinois\nlicense.\n-\n%https://toaruos.org\n%https://gitlab.com/toaruos\" ");
|
|
|
- char coords[100];
|
|
|
- sprintf(coords, "%d %d", (int)main_window->x + (int)main_window->width / 2, (int)main_window->y + (int)main_window->height / 2);
|
|
|
- strcat(about_cmd, coords);
|
|
|
- system(about_cmd);
|
|
|
- exit(0);
|
|
|
- }
|
|
|
+ char about_cmd[1024] = "\0";
|
|
|
+ strcat(about_cmd, "about \"About File Browser\" /usr/share/icons/48/folder.bmp \"ToaruOS File Browser\" \"(C) 2018 K. Lange\n-\nPart of ToaruOS, which is free software\nreleased under the NCSA/University of Illinois\nlicense.\n-\n%https://toaruos.org\n%https://gitlab.com/toaruos\" ");
|
|
|
+ char coords[100];
|
|
|
+ sprintf(coords, "%d %d &", (int)main_window->x + (int)main_window->width / 2, (int)main_window->y + (int)main_window->height / 2);
|
|
|
+ strcat(about_cmd, coords);
|
|
|
+ system(about_cmd);
|
|
|
redraw_window();
|
|
|
}
|
|
|
|