Skip to content

Commit b1edc92

Browse files
committed
just: One more update in configure-bluetooth-headset-profile
1 parent 077773a commit b1edc92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

files/justfiles/gidro-os.just

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,13 @@ configure-bluetooth-headset-profile ACTION="prompt":
313313
elif [ "$OPTION" == "Enable (Default)" ] || [ "${OPTION,,}" == "enable" ]; then
314314
if [ $(find "${WIREPLUMBER_DIR}" -type f | wc -l) -eq 1 ] && [ -f "${WIREPLUMBER_DIR}/${WIREPLUMBER_FILE}" ]; then
315315
sudo rm -r "${WIREPLUMBER_DIR}"
316+
systemctl --user restart wireplumber
317+
echo 'Reverted setting "Bluetooth headset profile" to defaults.'
316318
else
317319
sudo rm "${WIREPLUMBER_DIR}/${WIREPLUMBER_FILE}"
318-
fi
319320
systemctl --user restart wireplumber
320321
echo 'Reverted setting "Bluetooth headset profile" to defaults.'
322+
fi
321323
if [ ! -f "${WIREPLUMBER_DIR}/${WIREPLUMBER_FILE}" ]; then
322324
printf "\e[1;31mERROR: Bluetooth headset profile is already enabled, no change is made.\e[0m\n" 1>&2
323325
fi

0 commit comments

Comments
 (0)