Skip to content

Enhancement request: Configurable options for the xfce4-screensaver lock screen background

Submitted by Aidan

Assigned to Sean Davis @bluesabre

Link to original bug (#16841)

Description

I've noticed that the xfce4-screensaver lock screen background will share the same background with the Xfdesktop. Could an option be made available to separate the xfce4-screensaver background from the Xfdesktop so that the users desktop background wouldn't be seen when the session is locked?

These could be presented from the xfce4-screensaver-preferences (Lock Screen tab), or perhaps kept as only an xfconf property within the xfce4-screensaver channel, where the background image can be toggled from a TRUE | FALSE Boolean; an additional String property for specifying the image file path; and finally an integer property for specifying the image style (tiled, centered, full, etc).

See: https://git.xfce.org/apps/xfce4-screensaver/tree/src/xfce-bg.c#n312

/* This function loads the user's preferences */
void
xfce_bg_load_from_preferences (XfceBG     *bg,
                               GdkMonitor *monitor) {
    XfconfChannel *channel;

    channel = xfconf_channel_get ("xfce4-desktop");
    xfce_bg_load_from_xfconf (bg, channel, monitor);

    /* Queue change to force background redraw */
    queue_changed (bg);
}

Thank-you