Subject: [linux-audio-dev] a patch against ladspa-sdk to add default paths
From: Junichi Uekawa (dancer_AT_netfort.gr.jp)
Date: Thu Feb 01 2001 - 20:17:33 EET
Hello,
because I was rather annoyed by the default behavior of listplugin etc,
I added some default path for them.
This is required to comply to Debian Policy (applications should not require
an environmental variable set to work).
--- ladspa-sdk-0.orig/src/search.c
+++ ladspa-sdk-0/src/search.c
@@ -100,7 +100,7 @@
fprintf(stderr,
"Warning: You do not have a LADSPA_PATH "
"environment variable set.\n");
- return;
+ pcLADSPAPath= "/usr/lib/ladspa"; /* add defaults (Junichi Uekawa dancer_AT_debian.org) */
}
pcStart = pcLADSPAPath;
--- ladspa-sdk-0.orig/src/load.c
+++ ladspa-sdk-0/src/load.c
@@ -54,6 +54,8 @@
to search. */
pcLADSPAPath = getenv("LADSPA_PATH");
+ if (pcLADSPAPath)
+ pcLADSPAPath="/usr/lib/ladspa"; /* added by Junichi Uekawa (dancer_AT_debian.org) */
if (pcLADSPAPath) {
regards,
junichi
-- University: ti0113_AT_mail4.doshisha.ac.jp Netfort: dancer_AT_netfort.gr.jp Debian: dancer_AT_debian.org dancer, a.k.a. Junichi Uekawa http://www.netfort.gr.jp/~dancer Dept. of Knowledge Engineering and Computer Science, Doshisha University.
This archive was generated by hypermail 2b28 : Thu Feb 01 2001 - 20:44:30 EET