diff options
author | Jochen Keil <jochen.keil@gmail.com> | 2012-08-12 10:33:41 +0200 |
---|---|---|
committer | Jochen Keil <jochen.keil@gmail.com> | 2012-08-12 10:46:31 +0200 |
commit | 8a53271cd677bea3223f7d25eb1f697aa3d96540 (patch) | |
tree | 8f8f1c3ddc2e2ff0967218e2766105964cba6df8 /src/Plugins/Monitors/Cpu.hs | |
parent | 116e902d68546ef7f39ef5f75d24b8beba43661c (diff) | |
download | xmobar-8a53271cd677bea3223f7d25eb1f697aa3d96540.tar.gz xmobar-8a53271cd677bea3223f7d25eb1f697aa3d96540.tar.bz2 |
Catch error when DBus connection fails
connectSession throws a ClientError Exception when
DBUS_SESSION_BUS_ADDRESS is unset. Without exception handler this will
result in program termination.
Since the DBus handler merely sends a signal to the event loop it does
no harm when it won't run. Normal operation will continue just if
compiled without dbus support.
Diffstat (limited to 'src/Plugins/Monitors/Cpu.hs')
0 files changed, 0 insertions, 0 deletions