You are not logged in.

#1 2022-06-14 11:10:09

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

[solved] set Environment Variable DISPLAY without Displaymanager

Hello guys,

lately i got the Problem that some Applications like for example "blueman-applet" does not work correctly if i don't update the DISPLAY variable manually by 'dbus-update-activation-environment DISPLAY'

I'm using openbox standalone, using xinit without an Display-Manager.

For a short time i tried dmlight Displaymanager and noticed, that the problem with the DISPLAY variable didn't occur. But i decided to go back to xinit without Displaymanager.
So the question is, what is the correct way of setting the Environment Variables?

Last edited by Asbestbrezel (2022-06-14 11:33:21)

Offline

#2 2022-06-14 11:14:13

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved] set Environment Variable DISPLAY without Displaymanager

You have to source the files in /etc/X11/xinit/xinitrc.d/, or more specifically /etc/X11/xinit/xinitrc.d/50-systemd-user.sh, which sets DISPLAY & XAUTHORITY.


Jin, Jîyan, Azadî

Offline

#3 2022-06-14 11:16:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,243

Re: [solved] set Environment Variable DISPLAY without Displaymanager

I'm using … xinit

Please post your xinitrc and see the last link below.

Offline

#4 2022-06-14 11:32:52

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

Re: [solved] set Environment Variable DISPLAY without Displaymanager

I must have overseen this note in the xinit wiki-entry

"Note: At the very least, ensure that the last if block in /etc/X11/xinit/xinitrc is present in your ~/.xinitrc file to ensure that the scripts in /etc/X11/xinit/xinitrc.d are sourced."

This block was missing in my .xinitrc.
So, that solved the problem. Thanks guys!

Offline

Board footer

Powered by FluxBB