Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 62D1678079F for <~alpine/aports@lists.alpinelinux.org>; Fri, 25 Feb 2022 11:43:22 +0000 (UTC) Received: by mail-pj1-f48.google.com with SMTP id ge19-20020a17090b0e1300b001bcca16e2e7so3803256pjb.3 for <~alpine/aports@lists.alpinelinux.org>; Fri, 25 Feb 2022 03:43:22 -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=+1Uih0TZYRsL3MLMB6PQWm0mto/xjHKo7K7Mz+rI0Mk=; b=mklzNUoUxF+KjDzlNpKKvTyShBLWxQM2uP+EqwHoJI07Y37Dp0ZkbcsTeQRZMULLZP AAjn3sHlzJ3Bb3tl8wjdBjDRexAg8cpr+9HHidcCFXBLlmIZXnZQGHyLyVEePN9Me2Bd 1e+bXifav1QPS1sepblGJvmsu7FCTiDLoVv2cPUYsBBAwWoBb+L55V3/4SBBhX21FyxL DtlX27nZeh6ugN6QqKFjikULWGOBzavg9Uj0lwzgmYTaPoGBqA5WWdUs2rzQS20pjdeJ h+1CETMKRfFRoaH6n1bza7t/gCGZ0ltj+I3evLcfgnZH+qlK4oNUYlY+tLr+Mj2smu60 PWkA== 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=+1Uih0TZYRsL3MLMB6PQWm0mto/xjHKo7K7Mz+rI0Mk=; b=7dmGFncltz79gp2kzGEKAQFh6mnAbZ1Hw96uAiUQmMZ9suZ6vSHKBlZIXcH08XkvBF GVbMrOuDY6bIxsQUbKaHIgtX7SCCkC+ZLr6K3F97yyVqtSd2TqJvmhvIqsessbunMIYO a3JLCJemKibEwz00bYL2wKL+X1bfa9ggZxHL3M7htAEZXOqFXQFSYytUYbOZWZzqBCMz /b65LziJfOcO+G8DH3Y/q85ApUU5yjk7bMvY1a9g5RZ6o1eor18UbS9fmjJeFdaZzrJX do30zKcVwbC/M+8H61Smyj4rrylecyajUn+jGfTt5qbW0DUGTBWQCWNQGJO693TS3H3P qHCw== X-Gm-Message-State: AOAM533szkwoK++IS5/lnh4QJhdnxFtf5IrZllIMM5aVoT8sZFTSvjry JF/EkN4yikbF9iReZtOcG+RczWqTmE8= X-Google-Smtp-Source: ABdhPJzWAoVShmSVYZR/XeGMZpnl4b9ggn7xzbepy5l6GozkAiG3ng5U1Uxt0MYbl7iY4jVLSkNc4A== X-Received: by 2002:a17:90a:2b0d:b0:1b5:8087:4b4e with SMTP id x13-20020a17090a2b0d00b001b580874b4emr2780971pjc.70.1645789399906; Fri, 25 Feb 2022 03:43:19 -0800 (PST) Received: from localhost.localdomain ([103.220.208.74]) by smtp.gmail.com with ESMTPSA id p13-20020a056a000b4d00b004e1bb6ea975sm2862953pfo.214.2022.02.25.03.43.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 03:43:19 -0800 (PST) From: Pranjal Kole To: ~alpine/aports@lists.alpinelinux.org Cc: Pranjal Kole Subject: [PATCH] community/pipewire: kill previous instance before launch Date: Fri, 25 Feb 2022 17:12:29 +0530 Message-Id: <20220225114229.21191-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. Additionally, 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 --- community/pipewire/pipewire-launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community/pipewire/pipewire-launcher.sh b/community/pipewire/pipewire-launcher.sh index 95dcd5efc2..2ef1da3815 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-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 & -- 2.35.1