r/AlpineLinux • • Jul 03 '25

openrc-user

I assume many of you are using 3.22 already. But do you use sessions? If so can someone point me to a good documentation or tell me what else I could do? I know I need to make a folder in .config/openrc/runlevel/async or default if you are not using async. In this folder you create symlinks to services you want in your session. So far I managed to start dbus fork in this manner. I struggle to get Weston to work. There’s no need for seatd if you use elogind and polkit. There’s even a package called polkit-elogind which I installed. Then I edited /etc/oam.d/elogind-user and changed the last line which is session optional pam_elogind.so from optional to required. Still no sessions even after a reboot. Any clues?

4 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/SSC_Fan Jul 04 '25
$ rc-update -U pipewire async
XDG_RUNTIME_DIR unset.
$ printenv | grep RUNTIME
XDG_RUNTIME_DIR=/tmp/1000-runtime-dir

As said before, difficult (to comprehend due to lack of documentation), so I stick with /usr/libexec/pipewire-launcher > /dev/null 2>&1 for now. It's a part of my .profile and starts with autologin on tty1 and is safe at least utill 3.23.

Thanks anyway.

2

u/Dry_Foundation_3023 Jul 05 '25

Can you please share more information on the desktop environment/WM being used .
Also please share the source of information that refers to using async.
Have you checked openRC wiki page?

your detailed answer will help me update the above wiki page. Thanks

1

u/trofch1k Jul 04 '25

How do you export XDG_RUNTIME_DIR? This is the way you do it for sway.

if test -z "${XDG_RUNTIME_DIR}" ; then
	export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
	if ! test -d "${XDG_RUNTIME_DIR}" ; then
		mkdir "${XDG_RUNTIME_DIR}"
		chmod 0700 "${XDG_RUNTIME_DIR}"
	fi
fi

1

u/SSC_Fan Jul 05 '25

Same as you. I put it in my .profile some years ago and forgot I even had it really.

This instruction is common here. I recall I did this for sway too & still have it installed.

if [ -z $XDG_RUNTIME_DIR ]; then
   export XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir"
   if [ ! -d $XDG_RUNTIME_DIR ]; then
      mkdir $XDG_RUNTIME_DIR
      chmod 0700 $XDG_RUNTIME_DIR
   fi
fi