Blob Blame Raw
diff -Naur pulseaudio-equalizer-2.7.orig/usr/bin/pulseaudio-equalizer pulseaudio-equalizer-2.7/usr/bin/pulseaudio-equalizer
--- pulseaudio-equalizer-2.7.orig/usr/bin/pulseaudio-equalizer	2015-01-30 15:24:01.000000000 +0100
+++ pulseaudio-equalizer-2.7/usr/bin/pulseaudio-equalizer	2015-01-30 15:24:34.751204633 +0100
@@ -217,14 +217,14 @@
 
 # PyGTK Interface - Get Settings
 if [ "$1" = "interface.getsettings" ]; then
-  # Convert commas into newlines and dump all settings to configuration file
-  echo $PA_LADSPA_PLUGIN,$PA_LADSPA_LABEL,$PA_LADSPA_PLUGIN_NAME,$PA_PREAMP,$PA_CURRENT_PRESET,$PA_EQUALIZER_STATUS,$PA_EQUALIZER_PERSISTENCE,$PA_CONTROL_MIN,$PA_CONTROL_MAX,$PA_NUM_LADSPA_INPUTS,$PA_LADSPA_CONTROLS,$PA_LADSPA_INPUTS | sed 's/,/\n/g' >$CONFIG_NAME
-
   # Ensure that user preset directory exists
   if [ ! -d $PRESET_DIR1 ]; then
-    mkdir $PRESET_DIR1
+    mkdir -p $PRESET_DIR1
   fi
 
+  # Convert commas into newlines and dump all settings to configuration file
+  echo $PA_LADSPA_PLUGIN,$PA_LADSPA_LABEL,$PA_LADSPA_PLUGIN_NAME,$PA_PREAMP,$PA_CURRENT_PRESET,$PA_EQUALIZER_STATUS,$PA_EQUALIZER_PERSISTENCE,$PA_CONTROL_MIN,$PA_CONTROL_MAX,$PA_NUM_LADSPA_INPUTS,$PA_LADSPA_CONTROLS,$PA_LADSPA_INPUTS | sed 's/,/\n/g' >$CONFIG_NAME
+
   # Generate list of available presets (system)
   ls -x1 $PRESET_DIR2/*.preset | sed "s|$PRESET_DIR2/||g" | sed 's/.preset//g' >$CONFIG_NAME.availablepresets.unsorted