- Timestamp:
- 02/02/10 14:58:53 (13 years ago)
- Branches:
- master, qt5
- Children:
- ca90cb1
- Parents:
- ba631ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/alarm/alarm.cpp
rba631ca r2104023 6 6 #include <QDir> 7 7 #include <QFileInfo> 8 9 #include <QDebug> 8 10 9 11 //#include <dbus-1.0/dbus/dbus-protocol.h> … … 23 25 24 26 /* Use absolute time triggering */ 27 //eve->alarm_time = time(0) + 5; // for testing (5 seconds from now) 25 28 eve->alarm_time = aDateTime.toTime_t(); 26 29 eve->flags = ALARM_EVENT_BOOT; … … 30 33 alarm_action_set_label(act, "FOSDEM'10"); 31 34 32 QFileInfo fi(*qApp->argv()); 33 QString name(fi.fileName()); 34 35 QString command = QDir::currentPath() + "/" + name + QString(" %1").arg(QString::number(aEventId)); 36 //QString command = *qApp->argv() + QString(" %1").arg(QString::number(aEventId)); 35 QString command = QFileInfo(*qApp->argv()).absoluteFilePath() + QString(" %1").arg(QString::number(aEventId)); 36 qDebug() << "Setting alarm: " << command; 37 37 alarm_action_set_exec_command(act, command.toLocal8Bit().data()); 38 38 act->flags |= ALARM_ACTION_TYPE_EXEC;
Note: See TracChangeset
for help on using the changeset viewer.