Skip to main content

Module desktop

Module desktop 

Source
Expand description

The desktop’s logic, compiled where it runs and for the tests; the session itself (D-Bus, gsettings, Plasma’s files) only where it runs.

Structs§

Desktop 🔒
A computer’s desktop: Plasma’s inhibitions held, by pause; GNOME’s switch and what dconf says of it.
GnomeWatch 🔒
GNOME’s switch followed: dconf’s word of each change, and what was read then.
Session 🔒
The person’s session: its bus, GNOME’s settings through gsettings, Plasma’s through its files.

Enums§

Kind 🔒
What kind of desktop serves the notifications.

Constants§

BANNERS 🔒
GNOME’s Do Not Disturb, inverted: banners shown.
BANNERS_PATH 🔒
DESKTOP_ENTRY 🔒
Sioul’s desktop file, as Plasma and GNOME know the application.
SETTLE 🔒
dconf’s word of Sioul’s own switch may come this long after it: changes heard later are the person’s.

Traits§

Desk 🔒
The session’s side, behind a trait: tested with a stand-in.
Heard 🔒
Changes heard.
Held 🔒
An inhibition held.
Watching 🔒
The session’s own do-not-disturb, followed.

Functions§

desktop_is 🔒
Whether the session says it is this desktop (XDG_CURRENT_DESKTOP: “KDE”, “ubuntu:GNOME”).
kconfig 🔒
A key’s value in a KDE settings file, in a group written as its header ([Notifications], [Applications][com.aurelienpierre.Sioul]).
kconfig_time 🔒
A date and time as KConfig writes it (“2027,10,7,22,13,41.5”: year, month, day, hour, minute, seconds, in local time zone, or with a time zone as a seventh part): Unix seconds; none when it does not read.
open_plasma_settings 🔒
Plasma’s notification settings, at Sioul’s page, where “Show in do not disturb mode” is: System Settings, else its module alone.
shows_doses 🔒
Whether Plasma shows Sioul’s notifications (all sent as critical) during do-not-disturb, from its settings: critical ones shown then (CriticalInDndMode, true unless turned off), or Sioul allowed “Show in do not disturb mode” (ShowPopupsInDndMode); never when Sioul’s popups are off altogether (ShowPopups).