23 #include "alarmclient.h"
25 #include <kapplication.h>
27 #include <kstandarddirs.h>
29 #include <dcopclient.h>
32 AlarmClient::AlarmClient()
34 kdDebug(5850) << "AlarmClient::AlarmClient()" << endl;
39 if ( kapp->dcopClient()->isApplicationRegistered( "korgac" ) ) {
44 KGlobal::dirs()->addResourceType( "autostart", "share/autostart");
45 TQString desktopFile = locate( "autostart", "korgac.desktop" );
46 if ( desktopFile.isEmpty() ) {
47 kdWarning() << "Couldn't find autostart/korgac.desktop!" << endl;
51 if ( kapp->startServiceByDesktopPath( desktopFile, TQStringList(), &error ) != 0 )
52 kdWarning() << "Failure starting korgac:" << error << endl;
58 DCOPRef ref( "korgac", "ac" );
|