Commit 3eca438
authored
Add native screensaver (#13432)
* Implement a screensaver.
- Functional in wayland or x11
- Add a native 'away message' dialog
- Unify 'switch-to-greeter' code from multiple sources
- Add systemd/consolekit support for session states
- Provide cinnamon-screensaver-command (still utilized by csd-
power for pre-power-event activation).
- Remove cinnamon-screensaver as a required session component.
- Allow disabling of the internal screensaver to continue using
cinnamon-screensaver.
- Unify mpris code for the sound applet and albumArtWidget.js
- Unify power code for the power applet and powerWidget.js
TODO:
- Wallpaper in wayland sessions (postponed until there is layer-
shell support in muffin).
Imported from cinnamon-screensaver:
- PAM-related files, cinnamon-screensaver-pam-helper
- cinnamon-screensaver-command and cinnamon-unlock-desktop: Both
remain compatible with cinnamon-screensaver (> 6.7).
The screenShield actor contains all other related widgets like the
unlock dialog, and is placed in the new screenShieldGroup, the top-
most child of the global.stage.
Requires:
linuxmint/muffin#797
linuxmint/cinnamon-screensaver#491
linuxmint/cinnamon-settings-daemon#442
* Add backup-locker support for screensaver.
Imported from cinnamon-screensaver, but improved...
- Relies on dbus-activation now, which allows easier interaction
between cinnamon and the locker process to coordinate grabs.
- Add a simple dbus service to cinnamon-launcher, to allow restart
from the backup locker (still falling back to tty instructions
if the launcher isn't available).
- Re-use event-grabber and event-filter from cinnamon-screensaver
The backup window spawns when the screensaver shows, and is placed
in global.top_window_group (where other override-redirect/POPUP-type
windows are placed automatically).
In the event of a crash/restart, the backup window will try to raise
itself to the top, and will continue to until Cinnamon restarts.
When Cinnamon restarts, if its stored state (gsettings) shows it
should be locked, it will negotiate the modal grab from the backup
locker, and immediately lock the screensaver again.
* debian/control: Add Breaks/Replaces cinnamon-screensaver.
* Restrict access to screenShield instance and screensaver service.1 parent dd875ef commit 3eca438
78 files changed
Lines changed: 9811 additions & 560 deletions
File tree
- .github/workflows
- data
- pam
- services
- theme/cinnamon-sass
- widgets
- debian
- docs/reference/cinnamon
- files/usr
- bin
- js
- misc
- ui
- appSwitcher
- screensaver
- src
- screensaver
- backup-locker
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
524 | 542 | | |
525 | 543 | | |
526 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments