Skip to content

Commit 0b88247

Browse files
authored
Add files via upload
1 parent a49c662 commit 0b88247

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

panel.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ void readConfig() {
6868
QFile file;
6969
QString data;
7070

71+
if (!QFile::exists(homeDirectory + "/.config/plainDE/config.json")) {
72+
qDebug() << homeDirectory + "/.config/plainDE/config.json" + " does not exist. Generating new...";
73+
system("python3 /usr/share/plainDE/genconfig.py");
74+
}
75+
7176
file.setFileName(homeDirectory + "/.config/plainDE/config.json");
7277
file.open(QIODevice::ReadOnly | QIODevice::Text);
7378
data = file.readAll();
@@ -76,7 +81,7 @@ void readConfig() {
7681
}
7782

7883
void basicInit(panel* w) {
79-
if (QString::compare(getenv("XDG_SESSION_TYPE"), "x11")) {
84+
if (QString::compare(getenv("XDG_SESSION_TYPE"), "x11") != 0) {
8085
qDebug() << "plainPanel currently works only on X11. Quitting...";
8186
QApplication::quit();
8287
}

0 commit comments

Comments
 (0)