diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-10-31 21:10:43 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-10-31 21:10:43 +0800 |
commit | 5909ee59ade218fcaab27cc4446e5ab384d90679 (patch) | |
tree | 3ac3bb55698b9a3da19318ffda8b5473ccaf2a47 /embed | |
parent | 8ae13251b8cd09e1d077ec1ae46b481769c955f2 (diff) | |
download | gsoc2013-epiphany-5909ee59ade218fcaab27cc4446e5ab384d90679.tar gsoc2013-epiphany-5909ee59ade218fcaab27cc4446e5ab384d90679.tar.gz gsoc2013-epiphany-5909ee59ade218fcaab27cc4446e5ab384d90679.tar.bz2 gsoc2013-epiphany-5909ee59ade218fcaab27cc4446e5ab384d90679.tar.lz gsoc2013-epiphany-5909ee59ade218fcaab27cc4446e5ab384d90679.tar.xz gsoc2013-epiphany-5909ee59ade218fcaab27cc4446e5ab384d90679.tar.zst gsoc2013-epiphany-5909ee59ade218fcaab27cc4446e5ab384d90679.zip |
Use gnomevfs helper to open applications, drop our own.
2003-10-31 Marco Pesenti Gritti <marco@gnome.org>
* embed/mozilla/ContentHandler.cpp:
* lib/ephy-file-helpers.c:
* lib/ephy-file-helpers.h:
Use gnomevfs helper to open applications, drop our own.
Diffstat (limited to 'embed')
-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 { |