Damn, each Linux distrib put timidity.cfg at a different place
authorPatrice Mandin <patmandin@gmail.com>
Wed, 13 Jul 2005 14:39:19 +0000
changeset 271c402c87f8640
parent 270 d3c0033fed68
child 272 cdc4525b4bbb
Damn, each Linux distrib put timidity.cfg at a different place
timidity/config.h
timidity/timidity.c
     1.1 --- a/timidity/config.h	Sat Jul 09 14:58:21 2005 +0000
     1.2 +++ b/timidity/config.h	Wed Jul 13 14:39:19 2005 +0000
     1.3 @@ -219,6 +219,7 @@
     1.4     then specify the library directory in the configuration file. */
     1.5  #define CONFIG_FILE	"timidity.cfg"
     1.6  #define CONFIG_FILE_ETC "/etc/timidity.cfg"
     1.7 +#define CONFIG_FILE_ETC_TIMIDITY "/etc/timidity/timidity.cfg"
     1.8  
     1.9  #ifdef __WIN32__
    1.10  #define DEFAULT_PATH	"\\TIMIDITY"
     2.1 --- a/timidity/timidity.c	Sat Jul 09 14:58:21 2005 +0000
     2.2 +++ b/timidity/timidity.c	Wed Jul 13 14:39:19 2005 +0000
     2.3 @@ -296,7 +296,9 @@
     2.4  {
     2.5    if (read_config_file(CONFIG_FILE)<0) {
     2.6      if (read_config_file(CONFIG_FILE_ETC)<0) {
     2.7 -      return(-1);
     2.8 +      if (read_config_file(CONFIG_FILE_ETC_TIMIDITY)<0) {
     2.9 +        return(-1);
    2.10 +      }
    2.11      }
    2.12    }
    2.13