Package: ams / 2.2.0-1

01-ams_launch_script.patch Patch series | download
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
31
32
33
34
35
36
37
From: by Free Ekanayaka <free@agnula.org>
Date: Sat, 24 Aug 2019 13:54:39 +0200
Subject: Little script to set up the environment before launching ams
Forwarded: not-yet
Last-Update: 2020-12-19

---
 ams | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 ams

diff --git a/ams b/ams
new file mode 100644
index 0000000..b4da229
--- /dev/null
+++ b/ams
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Little script to set up the environment before launching ams
+#
+# Copyright (C) 2005 Free Ekanayaka <free@agnula.org>
+#
+# This script is licensed under the GNU GPL v2 - you can find a
+# complete copy of the license under /usr/share/common-licenses/GPL-2
+
+LADSPA_DEFAULT_PATH=/usr/lib/ladspa:/usr/local/ladspa
+OPTIONS=" --presetdir /usr/share/ams"
+
+if [ -z "$LADSPA_PATH" ]; then
+	export LADSPA_PATH=${LADSPA_DEFAULT_PATH}
+fi
+if [ $(ps -C jackd| wc -l) -gt 1 ]; then
+	OPTIONS="$OPTIONS --jack"
+fi
+
+exec /usr/lib/ams/ams.real $OPTIONS $@