|
|
@ -62,12 +62,15 @@ void initAppPaths(int argc, char **argv); |
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char **argv) |
|
|
|
int main(int argc, char **argv) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QApplication* app=new QApplication(argc,argv); |
|
|
|
QApplication* app; |
|
|
|
|
|
|
|
#if defined(Q_WS_X11) && defined(GLOBAL_AUTOTYPE) |
|
|
|
|
|
|
|
app = new KeepassApplication(argc,argv); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
app = new QApplication(argc,argv); |
|
|
|
|
|
|
|
#endif |
|
|
|
initAppPaths(argc,argv); |
|
|
|
initAppPaths(argc,argv); |
|
|
|
CmdLineArgs args; |
|
|
|
CmdLineArgs args; |
|
|
|
args.parse(app->arguments()); |
|
|
|
args.parse(QApplication::arguments()); |
|
|
|
delete app; |
|
|
|
|
|
|
|
app=NULL; |
|
|
|
|
|
|
|
qDebug(CSTR(AppDir)); |
|
|
|
qDebug(CSTR(AppDir)); |
|
|
|
qDebug(CSTR(DataDir)); |
|
|
|
qDebug(CSTR(DataDir)); |
|
|
|
//Load Config
|
|
|
|
//Load Config
|
|
|
@ -130,13 +133,6 @@ int main(int argc, char **argv) |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
#if defined(Q_WS_X11) && defined(GLOBAL_AUTOTYPE) |
|
|
|
|
|
|
|
if(!app) new KeepassApplication(argc,argv); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
if(!app) new QApplication(argc,argv); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Internationalization
|
|
|
|
//Internationalization
|
|
|
|
QLocale loc; |
|
|
|
QLocale loc; |
|
|
|
if(!args.language().size()) |
|
|
|
if(!args.language().size()) |
|
|
|