Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id C5277781121 for <~alpine/aports@lists.alpinelinux.org>; Fri, 4 Mar 2022 14:45:06 +0000 (UTC) Received: by mail-io1-f45.google.com with SMTP id t11so9740907ioi.7 for <~alpine/aports@lists.alpinelinux.org>; Fri, 04 Mar 2022 06:45:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wLHmMKcCw6zVlnHLYRY7bawqTNB5HzungnumCMj+9fU=; b=hg8SzUzlniq40wajRmC/Di+zw1U3MYJyv1+Qq4NykUmpkD+1fCfKW5cNmwal7LUi1v D8EanEeZiGTyWhcDBN+Uo/IVS5JGZlpXtTGNFFPkxa4CK2TAArpQ5yv5tCz0TZrNsuOE sKEilPxUwdnfiU2scivf3Wj1arMMWPw45WtS72mG47AC/A7rdiAx46SaQjxBu3OdhZwJ /DQiQInQZVSEYae0pHs4BX453cQqY2t00y5ibLdrBJJdWY3vzSVXhhPrvffL0v7QnSJh cIGrNXQKibd/9NafJEsm2tUn/zH1QklToS+4PZb9nzTXoioWy8CIwmTZgLrK1cEIahMn T7lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wLHmMKcCw6zVlnHLYRY7bawqTNB5HzungnumCMj+9fU=; b=2HcQfUEPZkSuKtSmghBCxYu7P3FxEFheDzNKJ8IMEMcrMFrlu0lUAQVQq0mQqZa5le 1DiQPzQeb3noBYsQki1t+2pXzjH9Aj1iLMV/txIJpJiDLk50ykjX18cmHaOHd1YiVMJu s8JjtcOUA7YIh1ed4lAkj3/lYIKd9sTSukODuilQ1J9KbC3cSm8UY6EGSB9yDG2ZRQXT OoQgHr+MYvpVaH6QfvXrIks6oDEuWyQ483YdOisBRq672CeQvSugfwEfrMwebwvW8ujl gD0JZmffP2LiTwmAtSoTwRAR6gLDltNyZKPRWwpbqRgjJzbnkVmjoqArSKAuVahTx/Lu cywQ== X-Gm-Message-State: AOAM530fOQ7j2Fydu7ctTirhxfCp5w5+1nzFKItJY28Op7Ksph3z6kX9 NDuuZbKa4S7KqFbmj53kVu502vLNXis= X-Google-Smtp-Source: ABdhPJzMw3sWi6qelRphYhb1MYtRsiU46zspAHBfFPXrKvCC3iNSJmslVu5P0f272CsMdfL9YWhkBQ== X-Received: by 2002:a02:b610:0:b0:311:8a9c:bb96 with SMTP id h16-20020a02b610000000b003118a9cbb96mr34308948jam.318.1646405104984; Fri, 04 Mar 2022 06:45:04 -0800 (PST) Received: from localhost.localdomain ([103.220.208.74]) by smtp.gmail.com with ESMTPSA id w6-20020a056e021c8600b002c602537ab9sm5575558ill.54.2022.03.04.06.45.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 06:45:03 -0800 (PST) From: Pranjal Kole To: ~alpine/aports@lists.alpinelinux.org Cc: Pranjal Kole Subject: [PATCH v2] community/pipewire: kill previous instance before launch Date: Fri, 4 Mar 2022 20:14:48 +0530 Message-Id: <20220304144449.10418-1-pranjal.kole7@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit /usr/bin/pipewire was not being killed previously. The order in which the processes are killed has been changed to avoid this error message from pipewire-media-session: [W][77952.698669] ms.core | [ media-session.c: 2211 core_error()] error id:0 seq:799 res:-32 (Broken pipe): connection error Additionally, pipewire-pulse is now started with the /usr/bin/ prefix, since a user may have another binary named pipewire in their $PATH. --- community/pipewire/APKBUILD | 4 ++-- community/pipewire/pipewire-launcher.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/community/pipewire/APKBUILD b/community/pipewire/APKBUILD index 561ab509d5..666a88efe9 100644 --- a/community/pipewire/APKBUILD +++ b/community/pipewire/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Bart Ribbers pkgname=pipewire pkgver=0.3.48 -pkgrel=0 +pkgrel=1 pkgdesc="Multimedia processing graphs" url="https://pipewire.org/" arch="all" @@ -199,5 +199,5 @@ sha512sums=" 67699015612dfafd12f8e0908fa028a1ae91f8ce3a6cd7aeaf313ce991c6cfa206ace24a559bf64631c0a690ea8aa03f878c7f73e3c123881f1b015cf6627c50 pipewire-0.3.48.tar.gz 3cd25a832cfb15ea60be2fdf2f4bb8d68984a6a57bf4a349afa3c497f86c3698edfc9811a5ba854ce9198219a81e6f1e40d6d9ee30ea4936323cbdace1fc1c0f 0001-Revert-pulse-tunnel-use-format-channels-and-rate-pro.patch d5d8bc64e42715aa94296e3e26e740142bff7f638c7eb4fecc0301e46d55636d889bdc0c0399c1eb523271b20f7c48cc03f6ce3c072e0e8576c821ed1ea0e3dd pipewire.desktop -61d616a19e15fbed41450c61a11cbdfe23def1d209e017539abdabf1c4d6511672db4e46de78522cb9979a0ab44b61f2e3773cac02258f2e273620c62eb65079 pipewire-launcher.sh +be2bd1520fae27ccca6af4c98e8ebe63541260af55eb085839235a8441a7bce434ba8bf23a5d1ca8b5f361229f5482d5b63504b9a5cbbe9d39bc051207cd7dac pipewire-launcher.sh " diff --git a/community/pipewire/pipewire-launcher.sh b/community/pipewire/pipewire-launcher.sh index 95dcd5efc2..ad3d950b6d 100644 --- a/community/pipewire/pipewire-launcher.sh +++ b/community/pipewire/pipewire-launcher.sh @@ -1,10 +1,10 @@ #!/bin/sh # We need to kill any existing pipewire instance to restore sound -pkill -u "${USER}" -x pipewire 1>/dev/null 2>&1 -pkill -u "${USER}" -fx "pipewire -c pipewire-pulse.conf" 1>/dev/null 2>&1 +pkill -u "${USER}" -fx "/usr/bin/pipewire -c pipewire-pulse.conf" 1>/dev/null 2>&1 pkill -u "${USER}" -fx /usr/bin/pipewire-media-session 1>/dev/null 2>&1 pkill -u "${USER}" -fx /usr/bin/wireplumber 1>/dev/null 2>&1 +pkill -u "${USER}" -fx /usr/bin/pipewire 1>/dev/null 2>&1 exec /usr/bin/pipewire & @@ -19,4 +19,4 @@ elif [ -x /usr/bin/pipewire-media-session ]; then exec /usr/bin/pipewire-media-session & fi -[ -f "/usr/share/pipewire/pipewire-pulse.conf" ] && exec pipewire -c pipewire-pulse.conf & +[ -f "/usr/share/pipewire/pipewire-pulse.conf" ] && exec /usr/bin/pipewire -c pipewire-pulse.conf & -- 2.35.1