Skip to content

Commit

Permalink
Suggest setting XDG_CURRENT_DESKTOP if DE cannot be detected (flamesh…
Browse files Browse the repository at this point in the history
…ot-org#2634)

(cherry picked from commit 2582f06)
  • Loading branch information
greenfoo authored and Yuriy Puchkov committed Jun 12, 2022
1 parent 577bbea commit b0bb2a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/screengrabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b0bb2a5

Please sign in to comment.