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

Message
Author
User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Potential fix ( Dark theme glitch without lightdm )

#1 Post 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.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Potential fix ( Dark theme glitch without lightdm )

#2 Post 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)
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
dolphin_oracle
Developer
Posts: 22350
Joined: Sun Dec 16, 2007 12:17 pm

Re: Potential fix ( Dark theme glitch without lightdm )

#3 Post 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.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Potential fix ( Dark theme glitch without lightdm )

#4 Post 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.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Potential fix ( Dark theme glitch without lightdm )

#5 Post 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.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Potential fix ( Dark theme glitch without lightdm )

#6 Post 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.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
dolphin_oracle
Developer
Posts: 22350
Joined: Sun Dec 16, 2007 12:17 pm

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

#7 Post by dolphin_oracle »

Probably should start x with startx rather than startxfce.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Potential fix ( Dark theme glitch without lightdm )

#8 Post 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.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
dolphin_oracle
Developer
Posts: 22350
Joined: Sun Dec 16, 2007 12:17 pm

Re: Potential fix ( Dark theme glitch without lightdm )

#9 Post 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...
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Potential fix ( Dark theme glitch without lightdm )

#10 Post 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
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

Post Reply

Return to “General”