Second part of prior commit

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1175949 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 15 years ago
parent a81880a78a
commit e66cfb6dc4

@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Comment=Browse the World Wide Web Comment=Browse the World Wide Web
Comment[en_US]=Browse the World Wide Web Comment[en_US]=Browse the World Wide Web
Exec=kfmclient exec http://www.google.com %u Exec=kfmclient openBrowser %u
GenericName=Web Browser GenericName=Web Browser
GenericName[en_US]=Web Browser GenericName[en_US]=Web Browser
Icon=konqueror Icon=konqueror

@ -124,6 +124,8 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
" # 'src' may be a list of URLs.\n\n").local8Bit()); " # 'src' may be a list of URLs.\n\n").local8Bit());
puts(i18n(" kfmclient sortDesktop\n" puts(i18n(" kfmclient sortDesktop\n"
" # Rearranges all icons on the desktop.\n\n").local8Bit()); " # 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" puts(i18n(" kfmclient configure\n"
" # Re-read Konqueror's configuration.\n\n").local8Bit()); " # Re-read Konqueror's configuration.\n\n").local8Bit());
puts(i18n(" kfmclient configureDesktop\n" puts(i18n(" kfmclient configureDesktop\n"
@ -532,6 +534,13 @@ bool clientApp::doIt()
KService::Ptr serv = offers.first(); KService::Ptr serv = offers.first();
return KRun::run( *serv, urls ); 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" ) else if ( command == "move" )
{ {

Loading…
Cancel
Save