diff options
author | Albert Graef | 2017-01-07 10:57:28 +0100 |
---|---|---|
committer | Albert Graef | 2017-01-07 10:57:28 +0100 |
commit | 477e0dc7b49ad8414f487c879f13aadc1fea6ed7 (patch) | |
tree | a1fe20ff5601991f38cee66752b90785ed604c48 /userconfig.patch | |
parent | afa4255217b7f608fa31c005db2077e01ec04dd3 (diff) | |
download | aur-477e0dc7b49ad8414f487c879f13aadc1fea6ed7.tar.gz |
Make it possible to install purr-data along with pd-l2ork.
Diffstat (limited to 'userconfig.patch')
-rw-r--r-- | userconfig.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/userconfig.patch b/userconfig.patch new file mode 100644 index 000000000000..b5ec5ff5ea6c --- /dev/null +++ b/userconfig.patch @@ -0,0 +1,31 @@ +diff --git a/pd/src/s_file.c b/pd/src/s_file.c +index 1c18096f..576e4c36 100644 +--- a/pd/src/s_file.c ++++ b/pd/src/s_file.c +@@ -62,7 +62,7 @@ static void sys_initloadpreferences( void) + sys_libdir->s_name); + + if (homedir) +- snprintf(user_prefs_file, FILENAME_MAX, "%s/.pd-l2ork/user.settings", homedir); ++ snprintf(user_prefs_file, FILENAME_MAX, "%s/.purr-data/user.settings", homedir); + if (stat(user_prefs_file, &statbuf) == 0) + strncpy(filenamebuf, user_prefs_file, FILENAME_MAX); + else if (stat(default_prefs_file, &statbuf) == 0) +@@ -143,7 +143,7 @@ static void sys_initsavepreferences( void) + + if (!homedir) + return; +- snprintf(filenamebuf, FILENAME_MAX, "%s/.pd-l2ork", homedir); ++ snprintf(filenamebuf, FILENAME_MAX, "%s/.purr-data", homedir); + filenamebuf[FILENAME_MAX-1] = 0; + if (stat(filenamebuf, &statbuf) || !S_ISDIR(statbuf.st_mode)) { + // user config dir doesn't exist yet, try to create it +@@ -152,7 +152,7 @@ static void sys_initsavepreferences( void) + return; + } + } +- snprintf(filenamebuf, FILENAME_MAX, "%s/.pd-l2ork/user.settings", homedir); ++ snprintf(filenamebuf, FILENAME_MAX, "%s/.purr-data/user.settings", homedir); + filenamebuf[FILENAME_MAX-1] = 0; + if ((sys_prefsavefp = fopen(filenamebuf, "w")) == NULL) + { |