rem: KApplication app;
add: if (!KUniqueApplication::start()) { fprintf(stderr, "%s is already running!\n", aboutData.appName()); exit(0); } KUniqueApplication app;
context: int main(int argc, char *argv[]){    KAboutData aboutData( "amor", I18N_NOOP("amor"),        AMOR_VERSION, description, KAboutData::License_GPL,        "(c) 1999, Martin R. Jones");    aboutData.addAuthor("Martin R. Jones",0, "mjones@kde.org");    KCmdLineArgs::init( argc, argv, &aboutData );    KApplication app;    // session management    AmorSessionWidget *sessionWidget = new AmorSessionWidget;    app.setTopWidget(sessionWidget);    new Amor();    return app.exec();}