diff options
Diffstat (limited to 'konqueror')
-rw-r--r-- | konqueror/client/kfmclient.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/konqueror/client/kfmclient.cc b/konqueror/client/kfmclient.cc index 5df26bb68..00e946e2a 100644 --- a/konqueror/client/kfmclient.cc +++ b/konqueror/client/kfmclient.cc @@ -124,6 +124,8 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv ) " # 'src' may be a list of URLs.\n\n").local8Bit()); puts(i18n(" kfmclient sortDesktop\n" " # Rearranges all icons on the desktop.\n\n").local8Bit()); + puts(i18n(" kfmclient openBrowser\n" + " # Opens the system default Web browser.\n\n").local8Bit()); puts(i18n(" kfmclient configure\n" " # Re-read Konqueror's configuration.\n\n").local8Bit()); puts(i18n(" kfmclient configureDesktop\n" @@ -532,6 +534,13 @@ bool clientApp::doIt() KService::Ptr serv = offers.first(); return KRun::run( *serv, urls ); } + else if ( command == "openBrowser" ) + { + KRun * run = new KRun( "http://default.browser", 0, 0, false, false /* no progress window */ ); + TQObject::connect( run, TQT_SIGNAL( finished() ), &app, TQT_SLOT( delayedQuit() )); + TQObject::connect( run, TQT_SIGNAL( error() ), &app, TQT_SLOT( delayedQuit() )); + app.exec(); + return !krun_has_error; } else if ( command == "move" ) { |