Package Details: pulseaudio-module-xrdp 0.6-3

Git Clone URL: https://aur.archlinux.org/pulseaudio-module-xrdp.git (read-only, click to copy)
Package Base: pulseaudio-module-xrdp
Description: PulseAudio modules for xrdp
Upstream URL: https://github.com/neutrinolabs/pulseaudio-module-xrdp
Licenses: LGPL
Submitter: kballen
Maintainer: Jat
Last Packager: Jat
Votes: 2
Popularity: 0.002565
First Submitted: 2019-10-16 19:53 (UTC)
Last Updated: 2022-06-28 17:50 (UTC)

Latest Comments

Jat commented on 2022-04-22 03:47 (UTC) (edited on 2022-04-22 03:59 (UTC) by Jat)

@fow0ryl

https://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#whatenvironmentvariablesdoespulseaudiocareabout

if pulseaudio is started by desktop environment

/etc/xrdp/sesman.ini

[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa

if pulseaudio is started by systemd

/etc/systemd/system/pulseaudio.service.d/xrdp.conf

[Service]
Environment="PULSE_SCRIPT=/etc/xrdp/pulse/default.pa"

if you want to start pulseaudio manually

PULSE_SCRIPT=/etc/xrdp/pulse/default.pa pulseaudio --daemonize=no

fow0ryl commented on 2022-04-21 11:45 (UTC)

When installing I get this message: Remember to pass the environment "PULSE_SCRIPT=/etc/xrdp/pulse/default.pa" to pulseaudio to make this module work.

But what does it mean? Where the enviroment variable has to be placed? A more detailed message would be helpful to everyone ...

sshaikh commented on 2022-01-27 08:36 (UTC)

So will this be updated each time a new version of pulseaudio is released?

piedro commented on 2022-01-27 00:37 (UTC)

Thanks a lot!

The fix works - that's good enough.

Cheers, p.

Jat commented on 2022-01-25 16:29 (UTC)

@captaincoder @sshaikh @piedro I made a temporary fix for this. if you have a better idea. feel free to let me know.

piedro commented on 2022-01-25 16:09 (UTC)

Sadly this always breaks with:

ERROR: Error downloading https://freedesktop.org/software/pulseaudio/releases/pulseaudio-.tar.xz

I see the point of @captaincoder but do not know how to fix it.

Btw, it's line 14 in the PKGBUILD

Any solution? Really would like to get some connections with audio going...

Best regards, p.

sshaikh commented on 2022-01-24 17:34 (UTC)

I raised this elsewhere and got some further suggestions:

https://github.com/AladW/aurutils/issues/898#issuecomment-1019898840

of which I personally like the look of 2.

sshaikh commented on 2022-01-23 14:39 (UTC) (edited on 2022-01-23 14:41 (UTC) by sshaikh)

Just echoing @captaincoder in that it's problematic running this in a chroot. I currently run the command and edit the PKGBUILD manually.

I guess the potential issue with using pacman is that this needs to be built against the version installed rather than the version available, although I accept in a rolling release distro that should be the same.

Either way a fix would be great.

captaincoder commented on 2022-01-18 08:31 (UTC)

This build can break when using aurutils with the container option. The container host does not have pulseaudio installed, nor does it have a need for it. The _pulseaudio_ver variable then gets set to an empty string. I suggest something like the following to obtain the version number from pacman instead of relying on makedeps that might not have been installed yet.

_pulseaudio_ver=$(pacman -Ss pulseaudio | grep "extra/pulseaudio " | sed -r -e 's/^.*pulseaudio ([0-9]+\.[0-9]+).*$/\1/g')

Probably awk can do a better job but I'm no hero with that language.

Jat commented on 2022-01-14 21:11 (UTC) (edited on 2022-01-14 21:11 (UTC) by Jat)

@Ta180m

pacman -Ql pulseaudio-module-xrdp

pulseaudio-module-xrdp /etc/
pulseaudio-module-xrdp /etc/xdg/
pulseaudio-module-xrdp /etc/xdg/autostart/
pulseaudio-module-xrdp /etc/xdg/autostart/pulseaudio-xrdp.desktop
pulseaudio-module-xrdp /usr/
pulseaudio-module-xrdp /usr/lib/
pulseaudio-module-xrdp /usr/lib/pulse-15.0/
pulseaudio-module-xrdp /usr/lib/pulse-15.0/modules/
pulseaudio-module-xrdp /usr/lib/pulse-15.0/modules/module-xrdp-sink.so
pulseaudio-module-xrdp /usr/lib/pulse-15.0/modules/module-xrdp-source.so
pulseaudio-module-xrdp /usr/libexec/
pulseaudio-module-xrdp /usr/libexec/pulseaudio-module-xrdp/
pulseaudio-module-xrdp /usr/libexec/pulseaudio-module-xrdp/load_pa_modules.sh

Ta180m commented on 2022-01-14 21:07 (UTC)

The /libexec directory in this package should be moved to /usr/libexec.

Jat commented on 2021-11-05 09:11 (UTC)

@nergar this is a module for xrdp, not bluetooth.

nergar commented on 2021-10-31 16:55 (UTC)

Build fails with BlueZ requires SBC support.

Adding sbc to make dependencies should fix it

sshaikh commented on 2021-08-27 14:58 (UTC) (edited on 2021-08-27 15:01 (UTC) by sshaikh)

I'm seeing the following while trying to build 0.5-2 in chroot:

:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Warn about old perl modules
(3/3) Updating the info directory file...
==> Retrieving sources...
  -> Found pulseaudio-module-xrdp-0.5.tar.gz
  -> Downloading pulseaudio-.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   278    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://freedesktop.org/software/pulseaudio/releases/pulseaudio-.tar.xz
    Aborting...

I believe the _pulseaudio_ver=$(pulseaudio --version | awk '{print $NF}') line is returning empty due to the chroot, so perhaps pulseaudio should be a makedepends?

Ta180m commented on 2021-08-10 20:53 (UTC)

If anyone's trying to debug why sound isn't working, I added some fixes to the wiki.

kevinro commented on 2021-07-31 23:44 (UTC)

Here is fix.

# Maintainer: kballen <ken@kballentine.net>

pkgname=pulseaudio-module-xrdp
pkgver=0.5
pkgrel=1
pkgdesc="PulseAudio modules for xrdp"
arch=('i686' 'x86_64')
url="https://github.com/neutrinolabs/pulseaudio-module-xrdp"
license=('Apache')
depends=('pulseaudio' 'xrdp')
makedepends=('libasyncns' 'libcap' 'attr' 'libxtst' 'libsm' 'libsndfile' 'rtkit' 'libsoxr'
    'speexdsp' 'tdb' 'systemd' 'dbus' 'avahi' 'bluez' 'bluez-libs' 'jack2' 'sbc' 
    'lirc' 'openssl' 'fftw' 'orc' 'gtk3' 'webrtc-audio-processing' 'check' 'git' 'meson'
    'xmltoman' 'valgrind' 'doxygen')

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/neutrinolabs/${pkgname}/archive/v${pkgver}.tar.gz"
        "git+https://github.com/pulseaudio/pulseaudio.git"
        "xrdp-script.conf")
sha256sums=('2fdda7b21293941dd671ee2a3557b904e3137eec062f4655a247fe60a4f7b0d1'
            'SKIP'
            '4c6e9c0b1eaf66ea6b8574570d89b292b8554d318ad324f3763f837013b9f44f')

prepare() {
    cd "$srcdir/pulseaudio"
    git checkout v`pkg-config libpulse --modversion|sed 's/[^0-9.]*\([0-9.]*\).*/\1/'`

    cd "$srcdir"

    local meson_options=(
      -D stream-restore-clear-old-devices=true
      -D pulsedsp-location='/usr/\$LIB/pulseaudio'
      -D udevrulesdir=/usr/lib/udev/rules.d
      -D bluez5-gstreamer=disabled
      -D elogind=disabled
      -D tcpwrap=disabled
    )

    arch-meson pulseaudio "$srcdir"/pulseaudio/build "${meson_options[@]}"
    meson compile -C "$srcdir"/pulseaudio/build

    cp -a "$srcdir"/pulseaudio/src/. "$srcdir"/pulseaudio/build/src/
}

build() {
    cd "$srcdir/${pkgname}-${pkgver}"
    ./bootstrap
    ./configure "PULSE_DIR=$srcdir/pulseaudio/build"
    make
}

package() {
    cd "$srcdir/${pkgname}-${pkgver}"
    make DESTDIR="$pkgdir" install

    # This package installs a global drop-in conf for pulseaudio.service to use the xrdp default.pa script instead of
    # the script from the pulseaudio package. If your only desktop sessions will be via xrdp, this should be fine. But
    # if you want to start local sessions too, this will prevent the real audio devices from being detected. If this is
    # a problem for you, delete the drop-in conf file and roll your own solution for loading the xrdp modules for xrdp
    # sessions only (maybe add PULSE_SCRIPT to the user systemd's environment in startwm.sh and create a drop-in for
    # pulseaudio.service that adds PassEnvironment=PULSE_SCRIPT).
    install -Dm644 "$srcdir"/xrdp-script.conf "$pkgdir"/usr/lib/systemd/user/pulseaudio.service.d/xrdp-script.conf
}

kyckl1ng commented on 2021-01-11 18:16 (UTC)

sha256sum for v0.5 is: 2fdda7b21293941dd671ee2a3557b904e3137eec062f4655a247fe60a4f7b0d1

please update

Excalibur commented on 2020-11-16 05:08 (UTC)

"yay --editmenu -Syu pulseaudio-module-xrdp" to install, then update the first sha256sum to:e504d90676c0dd9b9f069b60790f8feb0cc929e2ab1cb1f864c3a49850bed93b

hina commented on 2020-01-07 07:25 (UTC)

checksum is not updated!