Recognize Qtile WM (#2854)
This commit is contained in:
@@ -31,6 +31,9 @@ DesktopInfo::WM DesktopInfo::windowManager()
|
||||
if (desktop.contains(QLatin1String("GNOME"), Qt::CaseInsensitive)) {
|
||||
return DesktopInfo::GNOME;
|
||||
}
|
||||
if (desktop.contains(QLatin1String("qtile"), Qt::CaseInsensitive)) {
|
||||
return DesktopInfo::QTILE;
|
||||
}
|
||||
if (desktop.contains(QLatin1String("sway"), Qt::CaseInsensitive)) {
|
||||
return DesktopInfo::SWAY;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ public:
|
||||
GNOME,
|
||||
KDE,
|
||||
OTHER,
|
||||
QTILE,
|
||||
SWAY
|
||||
};
|
||||
|
||||
|
||||
@@ -102,6 +102,7 @@ QPixmap ScreenGrabber::grabEntireDesktop(bool& ok)
|
||||
switch (m_info.windowManager()) {
|
||||
case DesktopInfo::GNOME:
|
||||
case DesktopInfo::KDE:
|
||||
case DesktopInfo::QTILE:
|
||||
case DesktopInfo::SWAY: {
|
||||
freeDesktopPortal(ok, res);
|
||||
break;
|
||||
@@ -110,7 +111,7 @@ QPixmap ScreenGrabber::grabEntireDesktop(bool& ok)
|
||||
ok = false;
|
||||
AbstractLogger::error()
|
||||
<< tr("Unable to detect desktop environment (GNOME? KDE? "
|
||||
"Sway? ...)");
|
||||
"Qile? Sway? ...)");
|
||||
AbstractLogger::error()
|
||||
<< tr("Hint: try setting the XDG_CURRENT_DESKTOP environment "
|
||||
"variable.");
|
||||
|
||||
Reference in New Issue
Block a user