summaryrefslogtreecommitdiffstats
path: root/src/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
new file mode 100644
index 0000000..0c37166
--- /dev/null
+++ b/src/settings.cpp
@@ -0,0 +1,21 @@
+#include <QDebug>
+#include <QDir>
+#include "settings.h"
+
+#define BACKGROUND_IMAGE_KEY "greeter-background-image"
+#define LOGINFORM_OFFSETX_KEY "loginform-offset-x"
+#define LOGINFORM_OFFSETY_KEY "loginform-offset-y"
+#define LOGFILE_PATH_KEY "logfile-path"
+
+const QString Cache::GREETER_DATA_DIR_PATH = "/var/lib/lightdm/qt-lightdm-greeter";
+
+void Cache::prepare()
+{
+ QDir dir(GREETER_DATA_DIR_PATH);
+ if (!dir.exists()) {
+ if (!dir.mkpath(GREETER_DATA_DIR_PATH)) {
+ qWarning() << "Unable to create dir" << GREETER_DATA_DIR_PATH;
+ }
+ }
+}
+