Suggest setting XDG_CURRENT_DESKTOP if DE cannot be detected (#2634)

This commit is contained in:
greenfoo
2022-05-31 16:58:39 +02:00
committed by GitHub
parent 0116740e54
commit 2582f063cc

View File

@@ -108,6 +108,12 @@ QPixmap ScreenGrabber::grabEntireDesktop(bool& ok)
}
default:
ok = false;
AbstractLogger::error()
<< tr("Unable to detect desktop environment (GNOME? KDE? "
"Sway? ...)");
AbstractLogger::error()
<< tr("Hint: try setting the XDG_CURRENT_DESKTOP environment "
"variable.");
break;
}
if (!ok) {