2014-11-13 19:30:51 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2006 Aaron Seigo <aseigo@kde.org>
|
|
|
|
* Copyright (C) 2006 Zack Rusin <zack@kde.org>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this program; if not, write to the
|
|
|
|
* Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <KAboutData>
|
|
|
|
#include <KCmdLineArgs>
|
|
|
|
#include <kdebug.h>
|
2015-11-20 00:42:21 +02:00
|
|
|
#include <kdeversion.h>
|
2014-11-13 19:30:51 +02:00
|
|
|
#include <KLocale>
|
|
|
|
#include <KGlobal>
|
|
|
|
#include <config-workspace.h>
|
|
|
|
|
|
|
|
#include "krunnerapp.h"
|
|
|
|
|
|
|
|
static const char description[] = I18N_NOOP( "KDE run command interface" );
|
|
|
|
|
2015-05-09 16:39:54 +00:00
|
|
|
int main(int argc, char* argv[])
|
2014-11-13 19:30:51 +02:00
|
|
|
{
|
|
|
|
KAboutData aboutData( "krunner", 0, ki18n( "Run Command Interface" ),
|
2015-01-23 20:11:31 +00:00
|
|
|
KDE_VERSION_STRING, ki18n(description), KAboutData::License_GPL,
|
2014-11-13 19:30:51 +02:00
|
|
|
ki18n("(c) 2006, Aaron Seigo") );
|
|
|
|
aboutData.addAuthor( ki18n("Aaron J. Seigo"),
|
|
|
|
ki18n( "Author and maintainer" ),
|
|
|
|
"aseigo@kde.org" );
|
|
|
|
|
|
|
|
KCmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
if (!KUniqueApplication::start()) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
KRunnerApp *app = KRunnerApp::self();
|
|
|
|
KGlobal::locale()->insertCatalog(QLatin1String( "processui" ));
|
|
|
|
KGlobal::locale()->insertCatalog(QLatin1String( "libplasma" ));
|
|
|
|
app->disableSessionManagement(); // autostarted
|
|
|
|
int rc = app->exec();
|
|
|
|
delete app;
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|