Skip to content

Commit 3e61da0

Browse files
committed
screenShield.js: Disable backup-locker in wayland sessions.
It's not useful there, because currently the session dies if cinnamon crashes, and restarts aren't supported.
1 parent cc6dc6a commit 3e61da0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

js/ui/screensaver/screenShield.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,14 @@ var ScreenShield = GObject.registerClass({
11311131
}
11321132

11331133
_backupLockerCall(method, params, callback, noAutoStart = false) {
1134+
// BackupLocker is only useful for x11 sessions at the moment.
1135+
if (Meta.is_wayland_compositor()) {
1136+
_log(`ScreenShield: Skipping BackupLocker.${method} call on Wayland`);
1137+
if (callback)
1138+
callback();
1139+
return;
1140+
}
1141+
11341142
Gio.DBus.session.call(
11351143
'org.cinnamon.BackupLocker',
11361144
'/org/cinnamon/BackupLocker',

0 commit comments

Comments
 (0)