Skip to content

Commit 2858b76

Browse files
committed
just: Fix lack of permissions for configure-bluetooth-headset-profile
1 parent f2ae29b commit 2858b76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

files/justfiles/gidro-os.just

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,16 @@ configure-bluetooth-headset-profile ACTION="prompt":
300300
fi
301301
if [ "${OPTION,,}" == "disable" ]; then
302302
if ! [ -f "/etc/wireplumber/wireplumber.conf.d/51-disable-bluetooth-headphone-profile-switch.conf" ]; then
303-
mkdir -p "/etc/wireplumber/wireplumber.conf.d/"
304-
cp "/usr/share/bluebuild/gidro-os/51-disable-bluetooth-headphone-profile-switch.conf" "/etc/wireplumber/wireplumber.conf.d/51-disable-bluetooth-headphone-profile-switch.conf"
303+
sudo mkdir -p "/etc/wireplumber/wireplumber.conf.d/"
304+
sudo cp "/usr/share/bluebuild/gidro-os/51-disable-bluetooth-headphone-profile-switch.conf" "/etc/wireplumber/wireplumber.conf.d/51-disable-bluetooth-headphone-profile-switch.conf"
305305
systemctl --user restart wireplumber
306306
echo 'Disable Bluetooth headset profile setting applied.'
307307
else
308308
printf "\e[1;31mERROR: Bluetooth headset profile is already disabled, no change is made.\e[0m\n" 1>&2
309309
fi
310310
elif [ "$OPTION" == "Enable (Default)" ] || [ "${OPTION,,}" == "enable" ]; then
311311
if [ -f "/etc/wireplumber/wireplumber.conf.d/51-disable-bluetooth-headphone-profile-switch.conf" ]; then
312-
rm "/etc/wireplumber/wireplumber.conf.d/51-disable-bluetooth-headphone-profile-switch.conf"
312+
sudo rm "/etc/wireplumber/wireplumber.conf.d/51-disable-bluetooth-headphone-profile-switch.conf"
313313
systemctl --user restart wireplumber
314314
echo 'Reverted setting "Bluetooth headset profile" to defaults.'
315315
else

0 commit comments

Comments
 (0)