summarylogtreecommitdiffstats
path: root/pobfrontend-writable-user-dir.patch
diff options
context:
space:
mode:
authorBaptiste Careil2019-12-16 18:43:38 +0100
committerBaptiste Careil2019-12-16 18:43:38 +0100
commit58d075d236147c8419750818cdb2b03b6f09ff98 (patch)
tree37e3e544c4d6ed7834691e540b9a189cccb8590c /pobfrontend-writable-user-dir.patch
parent05f22693d50c6eff5575a8b420b35d49c4eb7749 (diff)
downloadaur-58d075d236147c8419750818cdb2b03b6f09ff98.tar.gz
Added compilation of lzip as an attempt to support self-update
Diffstat (limited to 'pobfrontend-writable-user-dir.patch')
-rw-r--r--pobfrontend-writable-user-dir.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pobfrontend-writable-user-dir.patch b/pobfrontend-writable-user-dir.patch
new file mode 100644
index 00000000000..544df2670b2
--- /dev/null
+++ b/pobfrontend-writable-user-dir.patch
@@ -0,0 +1,25 @@
+diff --git a/pobwindow.hpp b/pobwindow.hpp
+index cd88f54..7edec7f 100644
+--- a/pobwindow.hpp
++++ b/pobwindow.hpp
+@@ -2,6 +2,7 @@
+ #include <QDir>
+ #include <QOpenGLWindow>
+ #include <QPainter>
++#include <QStandardPaths>
+ #include <memory>
+
+ #include "main.h"
+@@ -30,10 +31,11 @@ public:
+ // theformat.setAlphaBufferSize(8);
+ // std::cout << theformat.hasAlpha() << std::endl;
+ // setFormat(theformat);
++ QString AppDataLocation = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
+ scriptPath = QDir::currentPath();
+ scriptWorkDir = QDir::currentPath();
+ basePath = QDir::currentPath();
+- userPath = QDir::currentPath();
++ userPath = AppDataLocation;
+
+ fontFudge = 0;
+ }