2 * Copyright (C) 2006 Aaron Seigo <aseigo@kde.org>
3 * Copyright (C) 2006 Zack Rusin <zack@kde.org>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Library General Public License version 2 as
7 * published by the Free Software Foundation
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #include <KCmdLineArgs>
25 #include "krunnerapp.h"
27 #include "saverengine.h"
28 #include "startupid.h"
30 #include "kscreensaversettings.h" // contains screen saver config
31 #include "klaunchsettings.h" // contains startup config
34 #include <X11/extensions/Xrender.h>
37 static const char description
[] = I18N_NOOP( "KDE run command interface" );
38 static const char version
[] = "0.1";
41 KDE_EXPORT
int kdemain(int argc
, char* argv
[])
43 KAboutData
aboutData( "krunner", 0, ki18n( "Run Command Interface" ),
44 version
, ki18n(description
), KAboutData::License_GPL
,
45 ki18n("(c) 2006, Aaron Seigo") );
46 aboutData
.addAuthor( ki18n("Aaron J. Seigo"),
47 ki18n( "Author and maintainer" ),
50 KCmdLineArgs::init(argc
, argv
, &aboutData
);
51 if (!KUniqueApplication::start()) {
55 KRunnerApp
*app
= KRunnerApp::self();
56 app
->disableSessionManagement(); // autostarted