Skip to content

Commit

Permalink
Suggest setting XDG_CURRENT_DESKTOP if DE cannot be detected (#2634)
Browse files Browse the repository at this point in the history
  • Loading branch information
greenfoo authored May 31, 2022
1 parent 0116740 commit 2582f06
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 2582f06

Please sign in to comment.