2014-11-13 19:30:51 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2006-2007 Aaron Seigo <aseigo@kde.org>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2,
|
|
|
|
* or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2023-09-01 16:41:30 +03:00
|
|
|
#include <QDateTime>
|
2014-11-13 19:30:51 +02:00
|
|
|
#include <KApplication>
|
|
|
|
#include <KAboutData>
|
|
|
|
#include <KCmdLineArgs>
|
|
|
|
#include <KLocale>
|
|
|
|
#include <KIcon>
|
|
|
|
#include <KDebug>
|
|
|
|
#include <kdeversion.h>
|
|
|
|
|
|
|
|
#include "plasmaapp.h"
|
|
|
|
|
|
|
|
static const char description[] = I18N_NOOP( "The KDE desktop, panels and widgets workspace application." );
|
|
|
|
|
2015-05-09 16:39:54 +00:00
|
|
|
int main(int argc, char **argv)
|
2014-11-13 19:30:51 +02:00
|
|
|
{
|
2023-09-01 16:41:30 +03:00
|
|
|
KAboutData aboutData("plasma-desktop", 0, ki18n("Plasma Desktop Shell"),
|
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("Copyright 2006-2009, The KDE Team"));
|
|
|
|
aboutData.addAuthor(ki18n("Aaron J. Seigo"),
|
|
|
|
ki18n("Author and maintainer"),
|
|
|
|
"aseigo@kde.org");
|
|
|
|
aboutData.addCredit(ki18n("John Lions"),
|
|
|
|
ki18n("In memory of his contributions, 1937-1998."),
|
|
|
|
0, "http://en.wikipedia.org/wiki/John_Lions");
|
|
|
|
|
2024-05-07 10:46:00 +03:00
|
|
|
// plasma-desktop is the session manager
|
|
|
|
::unsetenv("SESSION_MANAGER");
|
|
|
|
|
2014-11-13 19:30:51 +02:00
|
|
|
KCmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
|
|
|
|
PlasmaApp *app = PlasmaApp::self();
|
|
|
|
QApplication::setWindowIcon(KIcon("plasma"));
|
|
|
|
|
2015-01-16 21:13:30 +00:00
|
|
|
int rc = app->exec();
|
2014-11-13 19:30:51 +02:00
|
|
|
delete app;
|
|
|
|
return rc;
|
|
|
|
}
|