diff --git a/src/utils/desktopinfo.cpp b/src/utils/desktopinfo.cpp index 659662a1..4833f5ac 100644 --- a/src/utils/desktopinfo.cpp +++ b/src/utils/desktopinfo.cpp @@ -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; } diff --git a/src/utils/desktopinfo.h b/src/utils/desktopinfo.h index e94fc534..b84708c6 100644 --- a/src/utils/desktopinfo.h +++ b/src/utils/desktopinfo.h @@ -15,6 +15,7 @@ public: GNOME, KDE, OTHER, + QTILE, SWAY }; diff --git a/src/utils/screengrabber.cpp b/src/utils/screengrabber.cpp index d0d1bec8..9113ea30 100644 --- a/src/utils/screengrabber.cpp +++ b/src/utils/screengrabber.cpp @@ -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.");