Subject: bug#23286: Unable to unlock xscreensaver in Xfce

From: [email-masked] (Ludovic Courtès)
Date: Sun, 24 Apr 2016 15:47:20 +0200

Danny Milosavljevic <[email-masked]> skribis:

> On Thu, 14 Apr 2016 18:50:32 +0200
> [email-masked] (Ludovic Courtès) wrote:
>> As Chris Webber mentioned on the mailing list (IIRC), you’ll also have
>> to enable xscreensaver in the OS config:
>> 
>>   (use-modules (gnu services xorg))
>> 
>>   (operating-system
>>     ;; …
>>     (services (cons (screen-locker-service "xscreensaver")
>>                     %desktop-services)))
>
> guix system: error: failed to load '/etc/config.scm':
> gnu/services/xorg.scm:442:41: In procedure screen-locker-service:
> gnu/services/xorg.scm:442:41: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): "xscreensaver"

Oops, my bad: this should be

  (use-modules (gnu services xorg) (gnu packages xdisorg))

  (operating-system
    ;; …
    (services (cons (screen-locker-service xscreensaver)
                    %desktop-services)))

where ‘xscreensaver’ is a reference to the ‘xscreensaver’ variable
exported by the (gnu packages xdisorg) module.

Ludo’.