HevyDevy wrote:I believe needs root rights as i have to install xserver-xorg-legacy and the modify /etc/X11/Xwrapper.config
to have..
needs_root_rights=yesNope.
Devuan beowulf can now run rootless X OOTB (as long as the startx command is used) thanks to elogind
That may be true if using elogind but elogind depends on dbus and as i dont have dbus enabled and i have it pinned i have to use xserver-xorg-legacy. Thems the disadvantage of not using dbus i suppose.
]]>I believe needs root rights as i have to install xserver-xorg-legacy and the modify /etc/X11/Xwrapper.config
to have..
needs_root_rights=yes
Nope.
Devuan beowulf can now run rootless X OOTB (as long as the startx command is used) thanks to elogind
]]>What about if you have ~/.xsession with just exec dwm and then add ~/.xsessionrc to source ~/.profile?
You probably shouldn't use xdm any way because it will run X under the root user. The startx command runs X under your normal user, which is much better.
Can confirm that having ~/.xsession with just exec dwm and ~/.xsessionrc sourcing ~/.profile is the solution.
I prefer startx but even that i believe needs root rights as i have to install xserver-xorg-legacy and the modify /etc/X11/Xwrapper.config
to have..
needs_root_rights=yes
I was just interested to use xdm as it seems like the only display manager that does not need dbus as a dependency.
Anyhow thanks.
EDIT: correction looks like lxdm doesnt need dbus either.
]]>You probably shouldn't use xdm any way because it will run X under the root user. The startx command runs X under your normal user, which is much better.
]]>if [ -r ~/.profile ]; then
. ~/.profile;
fi
exec dwm
dwm is from suckless.org so, built from source.
There is definetly something im missing here, if i go back to startx and remove xdm .profile is sourced again.
]]>EDIT: hold on, did you source ~/.profile before the exec dwm line? Nothing in that file will be read after an exec statement.
And ~/.xsessionrc isn't really intended as a replacement for ~/.xsession, it is an adjunct to that file.
Devuan's display managers should automatically start whatever is set as the x-session-manager alternative with no need for further configuration, or /etc/alternatives/x-window-manager otherwise.
How did you install dwm? Is it the Devuan package or did you compile it yourself?
]]>I only have .xsessionrc and in that file is
exec dwm
.profile is still not sourced so lets add in what it says in regards to Xsession
https://wiki.debian.org/Xsession
You may dot in some other POSIX shell configuration file: if [ -r ~/.profile ]; then . ~/.profile; fi
nope .profile is still not being sourced.
]]>https://wiki.debian.org/Xsession
And you should use ~/.xsession instead of ~/.xinitrc (rather than as well as), at least according to the startx man page.
]]>Should i be using .xprofile instead? <-- tried this, did not work copying over contents of .profile to .xprofile, not having .profile sourced means it loses some of my $PATH setup there.
In the meantime i found a decent fix whereby i just add in a file to /etc/X11/Xsession.d/75local-profile
# Source a users .profile, etc
PROFILES="/etc/profile $HOME/.profile /etc/xprofile $HOME/.xprofile"
for PROFILE in $PROFILES ; do
[ -f "$PROFILE" ] && . "$PROFILE"
done
/bin/true
credit to https://lists.debian.org/debian-user/20 … 02457.html
Regards.
]]>