Hi,

To elaborate on the subject, I only wanted my own user session to be river, 
while the wayland greeter can continue to use sway.

I'm using following "%greetd-service" containing guix operating-system service 
definition to configure it:

===============================================================
(define (greetd-tty-config n)
  (greetd-terminal-configuration
    (terminal-vt (number->string n))))

(define %greetd-service
 (service greetd-service-type
   (greetd-configuration
     (terminals
       (cons
         (greetd-terminal-configuration
           (terminal-vt "1")
           (default-session-command
             (greetd-wlgreet-sway-session
               (sway sway/update)
               (command
                 (greetd-user-session
                   (xdg-session-type "wayland")
                   (xdg-env? #t)
                   (command-args '())
                   (extra-env '(("WLR_RENDERER" . "vulkan")))
                   (command
                     ;; specify user session here
                     (file-append sway/update "/bin/sway"))))
               (sway-configuration
                 (local-file "./data/sway-greetd.conf")))))
         (map greetd-tty-config
              (list 2 3 4 5 6 7 8 9)))))))
===============================================================

'sway/update' refers to a locally overridden sway package. It works fine for 
sway, but recently I wanted to try 'river' compositor, and replaced the 
following line in above snippet:

                     (file-append sway/update "/bin/sway"))))

with:

                     (file-append river "/bin/river"))))

I stopped getting login screen of the wayland greeter. I get a blank sway 
compositor display with just a swaybg child process running (both under greeter 
user). If I revert above change, it starts working as expected. And river works 
fine, when launched from tty session.

I'm on the following revision of guix:

===============================================================
 guix c912d63
   URL del repositorio: https://codeberg.org/guix/guix.git
   rama: master
   revisión: c912d63eaefeb6ff1064b2004671233a2e55af23
===============================================================

Any ideas what am I missing here in my configuration ?

Thanks!
--
Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0

"If I destroy you, what business is it of yours ?" (Dark Forest, Liu Cixin)

Attachment: signature.asc
Description: PGP signature

Reply via email to