The officially official Devuan Forum!

You are not logged in.

#1 Re: Desktop and Multimedia » [SOLVED] Devuan+dwm+xinitrc: how to start properly? » 2026-05-01 21:25:49

I've tried without 'dbus-launch' and with 'thunar --daemon' -> no local disks in Thunar.
It seems that the only way is to use 'dbus-launch --exit-with-session'...
Thank you for your help!

#2 Re: Desktop and Multimedia » [SOLVED] Devuan+dwm+xinitrc: how to start properly? » 2026-04-28 22:46:13

Not being a native English speaker, I probably didn't explain myself well.

To summarize:
- dwm works correctly with or without dbus.
- Thunar doesn't display local disks without a dbus session.

My question was which dbus command is appropriate to launch dwm (dbus-run-session or dbus-launch).
Thank you for your help.

#3 Re: Desktop and Multimedia » [SOLVED] Devuan+dwm+xinitrc: how to start properly? » 2026-04-28 14:08:42

No, I start X from tty with the startx command (no lightdm)...

#4 Re: Desktop and Multimedia » [SOLVED] Devuan+dwm+xinitrc: how to start properly? » 2026-04-28 13:31:26

Like this: (.xinitrc)

setxkbmap be -option terminate:ctrl_alt_bksp
numlockx
xset b off
xset dpms 720 900 1200
xsetroot -solid "#282828"
redshift -m randr -t 4500:3200 &
dunst &
xfce4-clipman &
gnome-keyring-daemon --start --components=pkcs11
gnome-keyring-daemon --start --components=secrets
gnome-keyring-daemon --start --components=ssh
lxpolkit &

EIP=$(curl -s ifconfig.me)
HOST=$(hostname -s)
LIP=$(hostname -I)

showhomefreespace() {
	df -h $HOME | tail -n 1 | awk '{print $4}'
}

while true; do
    xsetroot -name " 💻 $HOST   $LIP  🌍 $EIP   $(showhomefreespace)  $(date +' %a %e %B %Y   %H:%M') "
    sleep 1m
done &

#exec /usr/local/bin/dwm
#dbus-run-session -- /usr/local/bin/dwm
dbus-launch --exit-with-session /usr/local/bin/dwm

I should clarify that X11 and dwm launch correctly. What doesn't work without creating a dbus session is mounting local disks in Thunar.

#5 Re: Desktop and Multimedia » [SOLVED] Devuan+dwm+xinitrc: how to start properly? » 2026-04-28 13:03:08

No, it doesn't. I think that you must create a dbus session within .xinitrc to benefit from this service...

#6 Re: Desktop and Multimedia » [SOLVED] Devuan+dwm+xinitrc: how to start properly? » 2026-04-28 12:18:56

Yes, I use Thunar as graphical file manager and dbus allows it to display other disks.

#7 Desktop and Multimedia » [SOLVED] Devuan+dwm+xinitrc: how to start properly? » 2026-04-28 11:28:29

druid
Replies: 13

Hello everyone,

I installed Devuan without a desktop environment, downloaded and compiled dwm, which I'm starting via .xinitrc.

I'd like to know the recommended command to launch dwm, is it:

dbus-run-session -- /usr/local/bin/dwm 

or

dbus-launch --exit-with-session /usr/local/bin/dwm

or maybe a third one?

Thank you in advance for your answers.

Board footer

Forum Software