cd kalarm-2.7.4 mkdir obj cd obj cmake .. make [ Log in as root ] cd kalarm-2.7.4/obj make install
Options for cmake which may be of particular use are:
-DCMAKE_INSTALL_PREFIX=kdedir
Example: to install into /opt/kde4:
WARNING: If you install into a different directory than the KDE installation, you must prefix your installation directory path to the run-time environment variable KDEDIRS, and restart KDE. Otherwise KAlarm will not run correctly. If you don't understand what this means, you should install into the standard KDE directory.
-DCMAKE_BUILD_TYPE=Debugfull
Although KAlarm is a KDE application and requires the KDE libraries to be installed on your system, you can still use it while running other desktops or window managers.
In order to have alarms monitored and displayed automatically from one login
session to the next,
KAlarm
must be run automatically when you graphically log in or otherwise start X. If you
are running the KDE desktop, the KAlarm installation process sets this up for you.
GNOME 2
Run Desktop Preferences -> Advanced -> Sessions. In the Sessions dialog,
select the Startup Programs tab and click Add. Enter
kalarmautostart kalarm --tray as the Startup Command. This will run KAlarm
in the system tray every time you start up.
Other Window Managers
If you want to use KAlarm with a non-KDE window manager:
kalarm -session 117f000002000100176495700000008340018
You can use the 'ps' command to check this.
Using session restoration will ensure that alarm message windows which were displayed at the time of logout will be redisplayed when you log in again.
kalarm --tray
kalarmautostart kalarm --tray
The reason for using this command instead is that if kalarm --tray is executed while session restoration is already underway, KAlarm will fail to start. This is an unavoidable consequence of how a KDE application interacts with session restoration.
If your desktop environment or window manager has a facility to configure programs to be run at login, you can use that facility. Otherwise, you need to add the command to an appropriate script which is run after X is started.