-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaudacity
More file actions
executable file
·30 lines (25 loc) · 836 Bytes
/
audacity
File metadata and controls
executable file
·30 lines (25 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
#=======================================================================
# audacity
# File ID: 2c780c66-e36e-11e5-a57a-02010e0a6634
#
# Audacity wrapper
#
# Author: Øyvind A. Holm <sunny@sunbase.org>
# License: GNU General Public License version 2 or later.
#=======================================================================
progname=audacity
VERSION=0.3.2
conffile=~/.audacity-data/audacity.cfg
if test -e "$conffile"; then
# Export audio to the current directory
perl -pi -e 's/^(DefaultExportPath|DefaultOpenPath|Path)=(\/.*)/$1=/' "$conffile" || exit 1
fi
if test -e /usr/local/bin/audacity; then
/usr/local/bin/audacity "$@" &>/dev/null
elif test -e /usr/bin/audacity; then
/usr/bin/audacity "$@" &>/dev/null
else
echo $progname: Audacity isn\'t installed here >&2
exit 1
fi