diff options
Diffstat (limited to 'embed/mozilla/ContentHandler.cpp')
-rw-r--r-- | embed/mozilla/ContentHandler.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp index f1fdec95c..f79aa43bd 100644 --- a/embed/mozilla/ContentHandler.cpp +++ b/embed/mozilla/ContentHandler.cpp @@ -391,13 +391,14 @@ NS_METHOD GContentHandler::LaunchHelperApp (void) const nsCString &document = (mUrlHelper) ? mUrl : aFileName; char *param = g_strdup (document.get()); - ephy_file_launch_application (mHelperApp->command, - param, - mHelperApp->requires_terminal); - - if(mUrlHelper) mLauncher->Cancel(); + GList *params = NULL; + params = g_list_append (params, param); + gnome_vfs_mime_application_launch (mHelperApp, params); g_free (param); + g_list_free (params); + + if(mUrlHelper) mLauncher->Cancel(); } else { |