]>
cloud.milkyroute.net Git - dolphin.git/blob - src/main.cpp
1 /***************************************************************************
2 * Copyright (C) 2006 by Peter Penz <peter.penz19@gmail.com> *
3 * Copyright (C) 2006 by Stefan Monov <logixoul@gmail.com> *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
21 #include "dolphinapplication.h"
23 #include "dolphinmainwindow.h"
26 #include <KCmdLineArgs>
28 #include <kmainwindow.h>
32 KDE_EXPORT
int kdemain(int argc
, char **argv
)
34 KAboutData
about("dolphin", 0,
35 ki18nc("@title", "Dolphin"),
37 ki18nc("@title", "File Manager"),
38 KAboutData::License_GPL
,
39 ki18nc("@info:credit", "(C) 2006-2014 Peter Penz, Frank Reininghaus, and Emmanuel Pescosta"));
40 about
.setHomepage("http://dolphin.kde.org");
41 about
.addAuthor(ki18nc("@info:credit", "Emmanuel Pescosta"),
42 ki18nc("@info:credit", "Maintainer (since 2014) and developer"),
43 "emmanuelpescosta099@gmail.com");
44 about
.addAuthor(ki18nc("@info:credit", "Frank Reininghaus"),
45 ki18nc("@info:credit", "Maintainer (2012-2014) and developer"),
46 "frank78ac@googlemail.com");
47 about
.addAuthor(ki18nc("@info:credit", "Peter Penz"),
48 ki18nc("@info:credit", "Maintainer and developer (2006-2012)"),
49 "peter.penz19@gmail.com");
50 about
.addAuthor(ki18nc("@info:credit", "Sebastian Trüg"),
51 ki18nc("@info:credit", "Developer"),
53 about
.addAuthor(ki18nc("@info:credit", "David Faure"),
54 ki18nc("@info:credit", "Developer"),
56 about
.addAuthor(ki18nc("@info:credit", "Aaron J. Seigo"),
57 ki18nc("@info:credit", "Developer"),
59 about
.addAuthor(ki18nc("@info:credit", "Rafael Fernández López"),
60 ki18nc("@info:credit", "Developer"),
62 about
.addAuthor(ki18nc("@info:credit", "Kevin Ottens"),
63 ki18nc("@info:credit", "Developer"),
65 about
.addAuthor(ki18nc("@info:credit", "Holger Freyther"),
66 ki18nc("@info:credit", "Developer"),
68 about
.addAuthor(ki18nc("@info:credit", "Max Blazejak"),
69 ki18nc("@info:credit", "Developer"),
70 "m43ksrocks@gmail.com");
71 about
.addAuthor(ki18nc("@info:credit", "Michael Austin"),
72 ki18nc("@info:credit", "Documentation"),
73 "tuxedup@users.sourceforge.net");
74 // the .desktop file is not taken into account when launching manually, so
75 // set the icon precautionally:
76 about
.setProgramIconName("system-file-manager");
78 KCmdLineArgs::init(argc
, argv
, &about
);
80 KCmdLineOptions options
;
82 options
.add("select", ki18nc("@info:shell", "The files and directories passed as arguments "
83 "will be selected."));
84 options
.add("split", ki18nc("@info:shell", "Dolphin will get started with a split view."));
85 options
.add("+[Url]", ki18nc("@info:shell", "Document to open"));
86 KCmdLineArgs::addCmdLineOptions(options
);
89 DolphinApplication app
;
90 if (app
.isSessionRestored()) {
93 app
.exec(); // krazy:exclude=crashy