Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / kappfinder / main.cpp
bloba85bce045ea544c1067dbd0307e0571a8e239cfc
1 /*
2 KAppfinder, the KDE application finder
4 Copyright (c) 2000 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of version 2 of the GNU General Public
8 License as published by the Free Software Foundation.
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 Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #include <kaboutdata.h>
21 #include <kapplication.h>
22 #include <kcmdlineargs.h>
23 #include <klocale.h>
25 #include "toplevel.h"
27 static const char description[] = I18N_NOOP( "KDE's application finder" );
29 int main( int argc, char *argv[] )
31 KAboutData aboutData( "kappfinder", 0, ki18n( "KAppfinder" ),
32 "1.0", ki18n(description), KAboutData::License_GPL,
33 ki18n("(c) 1998-2000, Matthias Hoelzer-Kluepfel") );
34 aboutData.addAuthor( ki18n("Matthias Hoelzer-Kluepfel"), KLocalizedString(), "hoelzer@kde.org" );
35 aboutData.addAuthor( ki18n("Tobias Koenig"), KLocalizedString(), "tokoe@kde.org" );
37 KCmdLineArgs::init( argc, argv, &aboutData );
39 KCmdLineOptions options;
40 options.add("dir <dir>", ki18n( "Install .desktop files into directory <dir>" ));
41 KCmdLineArgs::addCmdLineOptions( options );
42 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
44 KApplication app;
46 TopLevel *dlg = new TopLevel( args->getOption( "dir" ) );
48 return dlg->exec();