Skip to content

Commit

Permalink
Fix something which was supposed to be there only for debug
Browse files Browse the repository at this point in the history
The wayland-specific code was accidentally executed even on X11

Fix #416
Ref #187
  • Loading branch information
DarthGandalf committed Oct 24, 2021
1 parent 1309cbf commit e7f3212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/shutter
Original file line number Diff line number Diff line change
Expand Up @@ -5917,7 +5917,7 @@ sub STARTUP {
undef, undef, $current_monitor_active->get_active
);

if ($ENV{XDG_SESSION_TYPE} eq "wayland" || 1) {
if ($ENV{XDG_SESSION_TYPE} eq "wayland") {
# TODO: support kwin directly, because it has more features than the xdg portal
$screenshot = Shutter::Screenshot::Wayland::xdg_portal($screenshooter);
} else {
Expand Down

0 comments on commit e7f3212

Please sign in to comment.