kde-workspace/krunner/main.cpp
Ivailo Monev a5fa8348e3 krunner: remove redundant startup notification feature
KWin has effect for it, I am not sure if it should be done by KWin but
if it is done by krunner and krunner is not started in Katana session it
may interfere with whatever is (potentially) doing startup notification
feedback. obviously, same goes for KWin but now it is done only from
one program

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-27 05:10:25 +03:00

54 lines
1.8 KiB
C++

/*
* 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>
#include <kdeversion.h>
#include <KLocale>
#include <KGlobal>
#include <config-workspace.h>
#include "krunnerapp.h"
static const char description[] = I18N_NOOP( "KDE run command interface" );
int main(int argc, char* argv[])
{
KAboutData aboutData( "krunner", 0, ki18n( "Run Command Interface" ),
KDE_VERSION_STRING, ki18n(description), KAboutData::License_GPL,
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;
}