diff options
Diffstat (limited to 'riscos/hotlist.c')
-rw-r--r-- | riscos/hotlist.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/riscos/hotlist.c b/riscos/hotlist.c index a01fb0307..e60dc8464 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -197,6 +197,23 @@ void ro_gui_hotlist_postinitialise(void) void ro_gui_hotlist_open(void) { + os_error *error; + char command[2048]; + + if (option_external_hotlists && option_external_hotlist_app != NULL && + *option_external_hotlist_app != '\0') { + snprintf(command, sizeof(command), "Filer_Run %s", + option_external_hotlist_app); + error = xos_cli(command); + + if (error == NULL) + return; + + LOG(("xos_cli: 0x%x: %s", error->errnum, error->errmess)); + warn_user("Failed to launch external hotlist: %s", + error->errmess); + } + tree_set_redraw(ro_treeview_get_tree(hotlist_window.tv), true); ro_gui_hotlist_toolbar_update_buttons(); |