[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: stupid idea about profiles
From: David Faure <faure () kde ! org>
Date: 2003-12-18 10:52:14
[Download RAW message or body]
On Thursday 18 December 2003 05:09, Ralf Nolden wrote:
> My suggestion then is to make the browser mode the default when starting
> konqueror from the commandline and to use the profile name when starting it
> as a filemanager. Even better would be a program (could be even a shell
> script, stupid like it sounds) called "kfilemanager" to start konqueror in
> filemanager mode.
>
> Comments ? I know this is a totally rediculous idea but to most people
> starting konqueror they want to use it as a browser because they don't even
> know what a filemanager is good for (especially commandline people)
Why not. After all if one wants a filemanager one can just type "konqueror ."
(or any other path) - so, there is even no need for a filemanager shellscript.
Patch attached.
--
David FAURE, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
["konq_main.cc.diff" (text/x-diff)]
Index: konq_main.cc
===================================================================
RCS file: /home/kde/kdebase/konqueror/konq_main.cc,v
retrieving revision 1.135
diff -u -p -r1.135 konq_main.cc
--- konq_main.cc 14 Nov 2003 23:42:53 -0000 1.135
+++ konq_main.cc 18 Dec 2003 10:51:13 -0000
@@ -137,8 +137,15 @@ extern "C" int kdemain( int argc, char *
}
else if (!args->isSet("silent"))
{
- KonqMainWindow *mainWindow = new KonqMainWindow;
- mainWindow->show();
+ // By default try to open in webbrowser mode. People can use \
"konqueror ." to get a filemanager. + QString profile = \
"webbrowsing"; + QString profilePath = locate( "data", \
QString::fromLatin1("konqueror/profiles/")+profile ); + if ( \
!profilePath.isEmpty() ) { + \
KonqMisc::createBrowserWindowFromProfile( profilePath, profile ); + } \
else { + KonqMainWindow *mainWindow = new KonqMainWindow;
+ mainWindow->show();
+ }
}
kdDebug(1202) << "main() -> no args" << endl;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic