File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1818#include < QHBoxLayout>
1919#include < QSpacerItem>
2020
21- #include < QX11Info>
22-
2321#include " applet.h"
2422#include " applets/appmenu/appmenu.h"
2523#include " applets/datetime/datetime.h"
2624#include " applets/kblayout/kblayout.h"
2725#include " applets/usermenu/usermenu.h"
2826#include " applets/volume/volume.h"
2927
30-
31- Display* display = QX11Info::display();
3228QJsonObject config;
3329QMap<QString,QWidget*> appletWidgets;
3430PanelLocation location;
@@ -62,7 +58,8 @@ void readConfig() {
6258}
6359
6460void basicInit (panel* w) {
65- if (!QX11Info::isPlatformX11 ()) {
61+ // if (!QX11Info::isPlatformX11()) {
62+ if (QString::compare (getenv (" XDG_SESSION_TYPE" ), " x11" )) {
6663 qDebug () << " plainPanel currently works only on X11. Quitting..." ;
6764 QApplication::quit ();
6865 }
You can’t perform that action at this time.
0 commit comments