Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 860978 Details for
Bug 904851
media-video/pipewire: gentoo-pipewire-launcher lacks restart functionality
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add 'restart' functionality.
launcher.diff (text/plain), 1.15 KB, created by
Alexis
on 2023-05-01 00:27:14 UTC
(
hide
)
Description:
Patch to add 'restart' functionality.
Filename:
MIME Type:
Creator:
Alexis
Created:
2023-05-01 00:27:14 UTC
Size:
1.15 KB
patch
obsolete
>--- /usr/bin/gentoo-pipewire-launcher.orig 2023-05-01 09:41:26.090573380 +1000 >+++ /usr/bin/gentoo-pipewire-launcher 2023-05-01 10:20:16.029193339 +1000 >@@ -9,8 +9,31 @@ > # which means D-Bus session instance is expected to be correctly set up > # prior to this script starting. If that is not true, things may break! > >-# Best to reap any existing daemons and only then try to start a new set. >-pkill -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1 >+restart () { >+ echo "Terminating PipeWire processes ..." >+ pkill -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1 >+ pwait -u "${USER}" -x pipewire\|wireplumber >+ echo "PipeWire terminated." >+} >+ >+if [ "${#}" -gt 0 ] >+then >+ if [ "${1}" = 'restart' ] >+ then >+ restart >+ else >+ echo "Unrecognised argument." >+ echo "Usage: gentoo-pipewire-launcher [restart]" >+ exit 1 >+ fi >+fi >+ >+if pgrep -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1 >+then >+ echo "PipeWire already running, exiting." >+ echo "(Use 'gentoo-pipewire-launcher restart' to restart PipeWire and WirePlumber.)" >+ exit 1 >+fi > > # The core daemon which by itself does probably nothing. > /usr/bin/pipewire &
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 904851
:
860978
|
861171