Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 904851 | Differences between
and this patch

Collapse All | Expand All

(-)a/media-video/pipewire/files/gentoo-pipewire-launcher.in (-3 / +25 lines)
Lines 9-16 Link Here
9
# which means D-Bus session instance is expected to be correctly set up
9
# which means D-Bus session instance is expected to be correctly set up
10
# prior to this script starting. If that is not true, things may break!
10
# prior to this script starting. If that is not true, things may break!
11
11
12
# Best to reap any existing daemons and only then try to start a new set.
12
restart () {
13
pkill -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1
13
    echo "Terminating PipeWire processes ..."
14
    pkill -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1
15
    pwait -u "${USER}" -x pipewire\|wireplumber
16
    echo "PipeWire terminated."
17
}
18
19
if [ "${#}" -gt 0 ]
20
then
21
    if [ "${1}" = 'restart' ]
22
    then
23
	restart
24
    else
25
        echo "Unrecognised argument."
26
	echo "Usage: gentoo-pipewire-launcher [restart]"
27
	exit 1
28
    fi
29
fi
30
31
if pgrep -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1
32
then
33
    echo "PipeWire already running, exiting."
34
    echo "(Use 'gentoo-pipewire-launcher restart' to restart PipeWire and WirePlumber.)"
35
    exit 1
36
fi
14
37
15
# The core daemon which by itself does probably nothing.
38
# The core daemon which by itself does probably nothing.
16
@GENTOO_PORTAGE_EPREFIX@/usr/bin/pipewire &
39
@GENTOO_PORTAGE_EPREFIX@/usr/bin/pipewire &
17
- 

Return to bug 904851