Page 1 of 1

Potential fix ( Dark theme glitch without lightdm )

Posted: Fri Jun 20, 2025 4:53 am
by SpongeBOB
Hi,

When lightdm is removeed

Code: Select all

apt purge lightdm
it seem that some, all ? MX GUI , control panel application do not handle the dark mode -->
Image

Cheers.

Re: Potential fix ( Dark theme glitch without lightdm )

Posted: Fri Jun 20, 2025 5:03 am
by SpongeBOB
I've tried also by just disabling lightdm

Code: Select all

update-rc.d lightdm disable
same outcome.

(btw all the test were made a on fresh install MX-23.6)

Re: Potential fix ( Dark theme glitch without lightdm )

Posted: Fri Jun 20, 2025 6:44 am
by dolphin_oracle
Whatever you’ve done it’s skipping processing of certain xsession setup files one of which sets some qt variables for themeing . Either that or you’ve removed the style plugins.

Re: Potential fix ( Dark theme glitch without lightdm )

Posted: Sat Jun 21, 2025 12:59 am
by SpongeBOB
Thank you @dolphin_oracle ,

You made me doubt, and I retry it, but like I was saying
SpongeBOB wrote: Fri Jun 20, 2025 5:03 am ... btw all the test were made a on fresh install MX-23.6
So after have done

Code: Select all

update-rc.d lightdm disable
reboot
when the system restarted I do

Code: Select all

startxfce4
but maybe it need arguments to load the require for qt ?

Because indeed it's related to qt, because other programs made with qt do not display dark theme either.

Cheers.

Re: Potential fix ( Dark theme glitch without lightdm )

Posted: Sat Jun 21, 2025 1:48 am
by SpongeBOB
I've check the variables env

and indeed there is a difference before and after have disable lightdm

missing variables

Code: Select all

QT_ACCESSIBILITY=1
GTK_MODULES=canberra-gtk-module:gail:atk-bridge
QT_PLATFORMTHEME=gtk2
QT_SCALE_FACTOR=1

XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/virtua
XAUTHORITY=/home/virtua/.Xauthority
GDM_LANG=en_US.UTF-8
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
PAPERSIZE=letter
with export I restored the first 4, but that didn't do the trick.

Re: Potential fix ( Dark theme glitch without lightdm )

Posted: Sat Jun 21, 2025 8:21 am
by SpongeBOB
something else that bug without lightdm

when launching the GUI Bash Config XFCE freeze, no possibility to click to anything anymore. Passing on another tty and `reboot` works.

Re: Potential fix ( Dark theme glitch without lightdm )  [Solved]

Posted: Sat Jun 21, 2025 9:06 am
by dolphin_oracle
Probably should start x with startx rather than startxfce.

Re: Potential fix ( Dark theme glitch without lightdm )

Posted: Sun Jun 22, 2025 5:32 am
by SpongeBOB
Thanks @dolphin_oracle !

Code: Select all

startx
solve the problem with QT variables, and now the qt apps have access totheir dark mode/theme... :happy:

On the other hand the problem with Bash config remain.

Re: Potential fix ( Dark theme glitch without lightdm )

Posted: Sun Jun 22, 2025 5:11 pm
by dolphin_oracle
looks like bash-config gets hung up looking for information related to possibly the bash prompt setup. not sure why it gets hung when not run through a display manager, but it does. works ok when startx and then run from a terminal, so maybe something in the way X is starting isn't populating some environment variables located in .bashrc, but of course opening a terminal does...

Re: Potential fix ( Dark theme glitch without lightdm )

Posted: Mon Jun 23, 2025 12:35 am
by SpongeBOB
dolphin_oracle wrote: Sun Jun 22, 2025 5:11 pm .. works ok when startx and then run from a terminal, so maybe something in the way X is starting isn't populating some environment variables located in .bashrc, but of course opening a terminal does...
I've tried too and I confirm, thanks @dolphin_oracle