Browse Source

allow environment variable JACK_RC_FILE to override the startup file used for autostart of the server

tags/0.124.0
Paul Davis 11 years ago
parent
commit
17b8b1048d
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      libjack/client.c

+ 7
- 2
libjack/client.c View File

@@ -861,9 +861,14 @@ _start_server (const char *server_name)
int i = 0;
int good = 0;
int ret;
char *startup_file;

snprintf(filename, 255, "%s/.jackdrc", getenv("HOME"));
fp = fopen(filename, "r");
if ((startup_file = getenv ("JACK_RC_FILE")) == NULL) {
snprintf(filename, 255, "%s/.jackdrc", getenv("HOME"));
startup_file = filename;
}

fp = fopen(startup_file, "r");

if (!fp) {
fp = fopen("/etc/jackdrc", "r");


Loading…
Cancel
Save