File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ void readConfig() {
68
68
QFile file;
69
69
QString data;
70
70
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
+
71
76
file.setFileName (homeDirectory + " /.config/plainDE/config.json" );
72
77
file.open (QIODevice::ReadOnly | QIODevice::Text);
73
78
data = file.readAll ();
@@ -76,7 +81,7 @@ void readConfig() {
76
81
}
77
82
78
83
void basicInit (panel* w) {
79
- if (QString::compare (getenv (" XDG_SESSION_TYPE" ), " x11" )) {
84
+ if (QString::compare (getenv (" XDG_SESSION_TYPE" ), " x11" ) != 0 ) {
80
85
qDebug () << " plainPanel currently works only on X11. Quitting..." ;
81
86
QApplication::quit ();
82
87
}
You can’t perform that action at this time.
0 commit comments