No autostart to Desktop as user

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version 9.14
  • Distro version | Bookworm
  • Kernel version | 6.12.20
  • Architecture | arm64
  • SBC model | RPi4

I have a similiar issue like mentioned above. Tried everything what was mentioned there but I have no devce timeouts. And would also not start after a delay.
As my standard user I can autologin to console, and startx into mate. That works.
But autologin to Desktoop does not- I tried 16 and in diet-pi-autostart. Both only brings me to the ‘hit return to login’ prompt. It works fine with root.
I tried downgrading to version 1.26

I have now added startx to my .bashrc what kind of works but I’d like to know what’s going on.
I have no clue what to do anymore since it coorelates with problem no 2. I have a feeling that it has to do with the vnc server.
I am using TigerVNC to usually connect via vnc to the server since it’s remote. But that doesn’t work anmore if I have an active desktop running on my monitor. And vice versa, so the autologin maybe fails because the vncserver is already started. I can also not start a desktop if an active vnc desktop is running. The error message: “Could not acquire name on session bus”.
I tried the SHARE_DESKTOP=1 setting in Dietpi.txt but that didnt work either.

One point I just want to mention because I don’t know whether it’s important or not: I know that I run xhost + on startup. I forgot why exactly that was neccessary but I think it was because of vncserver not working without it.

Thanks for your report.

In both cases (auto and manual), login as non-root user is done via LightDM. Can you check its service logs:

journalctl -u lightdm

At the moment: no entries

Hmm, does that symlink exist and point to the LightDM service?

ls -l /etc/systemd/system/display-manager.service

And if so, is it “WantedBy” the graphical target as expected?

systemctl show -p WantedBy display-manager

No, the sysmlink does not exist.
and
❯ cat /etc/X11/default-display-manager
/usr/sbin/lightdm
❯ systemctl status display-manager.service
Unit display-manager.service could not be found.

systemctl show -p WantedBy display-manager
WantedBy=graphical.target

update: I have created the link and started the service.
It seems to work, got a login mask could login.
Then changed autostart to 16 and 2 again und that still didnt work.
After reboot
systemctl status display-manager.service
lightdm.service - Light Display Manager
Loaded: loaded (/lib/systemd/system/lightdm.service; enabled
; preset: enabled)
Active: inactive (dead)

Starting it manually still works though.