From: <dom...@us...> - 2011-02-08 21:54:42
|
Revision: 93 http://fvwm-crystal.svn.sourceforge.net/fvwm-crystal/?rev=93&view=rev Author: dominique_libre Date: 2011-02-08 21:54:36 +0000 (Tue, 08 Feb 2011) Log Message: ----------- Fix for non working recipe preference with space in the recipe name Modified Paths: -------------- ChangeLog fvwm/components/functions/Preferences Modified: ChangeLog =================================================================== --- ChangeLog 2011-02-08 21:09:16 UTC (rev 92) +++ ChangeLog 2011-02-08 21:54:36 UTC (rev 93) @@ -4,6 +4,7 @@ * Fixed typo into most recipes that was causing erratic placement of the Notification Aera and probably random crashes of modules * Clean recipe: fixed FvwmPager syntax + * Fix for non working recipe preference with space in the recipe name Lundi 7 février 2011 Dominique Michel * Typo Modified: fvwm/components/functions/Preferences =================================================================== --- fvwm/components/functions/Preferences 2011-02-08 21:09:16 UTC (rev 92) +++ fvwm/components/functions/Preferences 2011-02-08 21:54:36 UTC (rev 93) @@ -18,16 +18,13 @@ DestroyFunc SavePreferences AddToFunc SavePreferences + I Exec echo $1 > $[FVWM_USERDIR]/preferences/$0 -# + I Exec exec echo "$1" > "$[FVWM_USERDIR]/preferences/$0" # Modification of SavePreferences: add more lines to the preferences file # DestroyFunc AppendPreferences AddToFunc AppendPreferences -+ I Exec exec touch $[FVWM_USERDIR]/preferences/"$0" -+ I Exec exec echo "$1" >> $[FVWM_USERDIR]/preferences/"$0" -# + I Exec touch $[FVWM_USERDIR]/preferences/$0 -# + I Exec echo $1 >> $[FVWM_USERDIR]/preferences/$0 ++ I Exec touch $[FVWM_USERDIR]/preferences/$0 ++ I Exec echo $1 >> $[FVWM_USERDIR]/preferences/$0 # add or update one line into the preferences file # @@ -35,7 +32,7 @@ # where <begining of the line> must be unique into the file. DestroyFunc UpdateAppendPreferences AddToFunc UpdateAppendPreferences -+ I Exec exec touch $[FVWM_USERDIR]/preferences/"$0" ++ I Exec touch $[FVWM_USERDIR]/preferences/"$0" + I PipeRead 'mv $[FVWM_USERDIR]/preferences/"$0" $[FVWM_USERDIR]/preferences/"$0".tmp; \ sed "/^$2.*/d" $[FVWM_USERDIR]/preferences/"$0".tmp > $[FVWM_USERDIR]/preferences/"$0"; \ rm $[FVWM_USERDIR]/preferences/"$0".tmp; \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |