-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio redirect not automatically starting #82
Comments
Regarding your two points:-
|
Regarding 2 - Sorry for my lack of clarity. I'm hoping to install things with one user, and have the xrdp sound redirect available to all users on the system. So following my example, if |
It sounds like you're looking for a system-wide This isn't a normal set-up. Normally if What would you expect to happen if both |
Again, sorry for my lack of clarity and knowledge of pulseaudio. I'm aiming for that "normal" case where if I think the issue for me is the automatic startup of the daemon isn't working for Thanks again for your quick responses! |
I'm hardly a pulseaudio expert myself! Both users should end up with completely separate pulseaudio daemons, and separate I've just tried this on my system with $ ps -ef | grep 'testus.*pulseaudio' xtestus+ 1569 1561 2 09:09 ? 00:00:22 /usr/bin/pulseaudio --daemonize=no --log-target=journal xtestus+ 1846 1796 0 09:10 ? 00:00:00 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libpulseaudio-plugin.so 8 12582921 pulseaudio PulseAudio Plugin Adjust the audio volume of the PulseAudio sound system testuser 2155 2149 0 09:12 ? 00:00:00 /usr/bin/pulseaudio --daemonize=no --log-target=journal mjb 2943 1266 0 09:24 pts/0 00:00:00 grep --color=auto testus.*pulseaudio If I run this command to see what
I get the following:-
Is that useful? |
Auto starting of the xrdp sink doesn't seem to be working for all users, and I suspect this is due to a combination of restrictive umask issues and missing system-wide configuration. Though it does not auto-start at initiation of an xrdp session, I can successfully get audio redirects working after running
pulseaudio --start
orpulseaudio -D
in a terminal.My initial suspicion is that the file permissions on
/usr/libexec/pulseaudio-module-xrdp/load_pa_modules.sh
and/etc/xdg/autostart/pulseaudio-xrdp.desktop
are too restrictive due to the default umask and need to be explicitly placed with 755 on the folders. Otherwise they seemed to be installed fine.Initial troubleshooting with
sudo ls -la /usr/libexec/
output:In an effort to address this, I manually changed the permissions on these:
I think this might be configurable in https://github.com/neutrinolabs/pulseaudio-module-xrdp/blob/devel/instfiles/Makefile.am? I'm not familiar with makefile.am files, so don't initially know how to set this there.
After manually changing the permissions of these two files, I found that sound over XRDP was automatically starting and working, but only for the user I originally ran the wrapped script from. When logging in with another user, I found I needed to run
pulseaudio -D
to start up a pulseaudio server. This immediately enabled the redirect to work. I'm not familiar enough with pulseaudio to know what the cause of this may be (yet).The user configuration files populated (
~/.config/pulse/
, listed below) seem to be what is missing. Though I don't know what the function is, copying these files from one user to another (and restarting) fixes the issue. Maybe if we could instead replicate this configuration in the system config at/etc/pulse/
it may fix things for all users? At least in an initial skim of this codebase, I'm not sure where this might be configured.For reference,
mainuser
is the user the scripts from this repo were run as.I'm happy to put in a PR if I find a successful implementation. Suggestions are welcome!
The text was updated successfully, but these errors were encountered: