Subject: bug#26688: LXDE: Login fails

From: [email-masked] (Ludovic Courtès)
Date: Sun, 07 May 2017 18:02:36 +0200

Hi ng0,

ng0 <[email-masked]> skribis:

> I would've appended the file if it existed. But $home/.xsession-error
> doesn't exist here.

Indeed, not sure why.

I was able to reproduce the problem in a VM with the attached config.
It boils down to this:

--8<---------------cut here---------------start------------->8---
$ /gnu/store/9fdxlzwbsfzhncwznlx2lrp8rdq61f7v-lxde-common-0.99.2/bin/startlxde 
cp: cannot stat '/etc/xdg/openbox/LXDE/rc.xml': No such file or directory
/gnu/store/9fdxlzwbsfzhncwznlx2lrp8rdq61f7v-lxde-common-0.99.2/bin/startlxde: line 47: /gnu/store/9fdxlzwbsfzhncwznlx2lrp8rdq61f7v-lxde-common-0.99.2/bin/lxsession: No such file or directory
--8<---------------cut here---------------end--------------->8---

The ‘cp’ error seems harmless but the other one is obviously
problematic.

Could you check what’s wrong with ‘startlxde’?

Thanks!

Ludo’.

;; This is an operating system configuration template
;; for a "desktop" setup without full-blown desktop
;; environments.

(use-modules (gnu) (gnu system nss))
(use-service-modules desktop)
(use-package-modules wm lxde certs)

(operating-system
  (host-name "antelope")
  (timezone "Europe/Paris")
  (locale "en_US.utf8")

  ;; Assuming /dev/sdX is the target hard disk, and "my-root"
  ;; is the label of the target root file system.
  (bootloader (grub-configuration (device "/dev/sdX")))

  (file-systems (cons (file-system
                        (device "my-root")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

  (users (cons (user-account
                (name "alice")
                (comment "Bob's sister")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/alice"))
               %base-user-accounts))

  ;; Add a bunch of window managers; we can choose one at
  ;; the log-in screen with F1.
  (packages (cons* lxde
                   nss-certs                      ;for HTTPS access
                   %base-packages))

  ;; Use the "desktop" services, which include the X11
  ;; log-in service, networking with Wicd, and more.
  (services %desktop-services)

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))