diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 50a8d38..b1c7962 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,6 +14,10 @@ #include <QPainter> #include <QMap> +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include <fcntl.h> /* Obtain O_* constant definitions */ +#include <unistd.h> + #include <iostream> #include "settings.h" @@ -32,10 +36,10 @@ static inline int size(const QRect& r) int main(int argc, char *argv[]) { + dup2(2, 1); // I have no idea why, but Qt's stock qDebug() output never makes it // to /var/log/lightdm/x-0-greeter.log, so we use std::cerr instead.. qInstallMessageHandler(messageHandler); - Cache::prepare(); QApplication a(argc, argv); |