diff options
author | Steve Fryatt <steve@stevefryatt.org.uk> | 2011-11-19 21:59:46 +0000 |
---|---|---|
committer | Steve Fryatt <steve@stevefryatt.org.uk> | 2011-11-19 21:59:46 +0000 |
commit | 78181f7d4e516aff3c826459beab8ace5edc2e65 (patch) | |
tree | 42983ac6cc85fb3dfde645b4e32f2e489ee1e555 /riscos/hotlist.c | |
parent | dfcd555a0ed6cf1048b8b9698549e2912061b256 (diff) | |
download | netsurf-78181f7d4e516aff3c826459beab8ace5edc2e65.tar.gz netsurf-78181f7d4e516aff3c826459beab8ace5edc2e65.tar.bz2 |
Config to enable external hotlist app to be launched via toolbar and menus.
svn path=/trunk/netsurf/; revision=13150
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(); |