extragear/sdk/kdevelop/app
Andreas Pakulat
apaku at gmx.de
Tue Dec 8 08:14:24 UTC 2009
On 08.12.09 01:39:09, David Nolden wrote:
> SVN commit 1060081 by zwabel:
>
> Allow specifying the session to load through the command-line.
>
> M +5 -0 main.cpp
>
>
> --- trunk/extragear/sdk/kdevelop/app/main.cpp #1060080:1060081
> @@ -118,6 +118,7 @@
> KCmdLineArgs::init( argc, argv, &aboutData );
> KCmdLineOptions options;
> options.add("profile <profile>", ki18n( "Profile to load" ));
> + options.add("s <session>", ki18n("Session to load" ));
> options.add("project <project>", ki18n( "Url to project to load" ));
> options.add("+files", ki18n( "Files to load" ));
Looking at this is there a definition of how -s, -project and additional
files being listed interact? Also, can we please stay consistent and use
"session" instead of just "s".
> KCmdLineArgs::addCmdLineOptions( options );
> @@ -137,6 +138,10 @@
> QTimer::singleShot(0, splash, SLOT(deleteLater()));
> }
>
> + QString sessionName = args->getOption("s");
> + if(!sessionName.isEmpty())
> + setenv("KDEV_SESSION", sessionName.toLatin1(), 1);
> +
Can't we make this a proper setter on the Core class? - please :)
Andreas
--
So you're back... about time...
More information about the KDevelop-devel
mailing list