Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

pulse2jack: Add the option to use a user-selected config file #308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions data/cadence-pulse2jack
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,23 @@ exit

-p|--p|--play)
PLAY_ONLY="yes"
FILE=$INSTALL_PREFIX/share/cadence/pulse2jack/play.pa
if test -n "${CADENCE_PULSE2JACK_PLAY}"; then
FILE="$CADENCE_PULSE2JACK_PLAY"
elif test -f ~/.config/Cadence/pulse2jack/play.pa; then
FILE=~/.config/Cadence/pulse2jack/play.pa
else
FILE=$INSTALL_PREFIX/share/cadence/pulse2jack/play.pa
fi
;;

*)
FILE=$INSTALL_PREFIX/share/cadence/pulse2jack/play+rec.pa
if test -n "${CADENCE_PULSE2JACK_PLAYREC}"; then
FILE="$CADENCE_PULSE2JACK_PLAYREC"
elif test -f ~/.config/Cadence/pulse2jack/play+rec.pa; then
FILE=~/.config/Cadence/pulse2jack/play+rec.pa
else
FILE=$INSTALL_PREFIX/share/cadence/pulse2jack/play+rec.pa
fi
;;
esac

Expand Down