From: <dom...@us...> - 2013-04-12 10:19:31
|
Revision: 222 http://sourceforge.net/p/fvwm-crystal/code/222 Author: dominique_libre Date: 2013-04-12 10:19:27 +0000 (Fri, 12 Apr 2013) Log Message: ----------- +functions/Xdg-User-Dirs: Set locale aware variables for well know user directories Modified Paths: -------------- ChangeLog fvwm/components/desktop/FVWM-Crystal_Functions Added Paths: ----------- fvwm/components/functions/Xdg-User-Dirs Modified: ChangeLog =================================================================== --- ChangeLog 2013-04-11 21:28:38 UTC (rev 221) +++ ChangeLog 2013-04-12 10:19:27 UTC (rev 222) @@ -1,5 +1,10 @@ ChangeLog for FVWM-Crystal +Vendredi 12 Avril 2013 Dominique Michel + ++ functions/Xdg-User-Dirs: Set locale aware variables for well + know user directories + Jeudi 11 Avril 2013 Dominique Michel FAQ: Added q.a. about tear off menus. functions/Music-mplayer: fix glitch into the speed control; introduced Modified: fvwm/components/desktop/FVWM-Crystal_Functions =================================================================== --- fvwm/components/desktop/FVWM-Crystal_Functions 2013-04-11 21:28:38 UTC (rev 221) +++ fvwm/components/desktop/FVWM-Crystal_Functions 2013-04-12 10:19:27 UTC (rev 222) @@ -6,6 +6,9 @@ # In order to be safe, we load here all the preferences they doesn't need # some of the fvwm-crystal functions. +# Load the "well know" user directories (locale aware) +Include components/functions/Xdg-User-Dirs + ## Load the prefs with only a SetEnv initialisation LoadPreferences DefaultMixer LoadPreferences DefaultMusicPlayer Added: fvwm/components/functions/Xdg-User-Dirs =================================================================== --- fvwm/components/functions/Xdg-User-Dirs (rev 0) +++ fvwm/components/functions/Xdg-User-Dirs 2013-04-12 10:19:27 UTC (rev 222) @@ -0,0 +1,15 @@ +# Support for localized user directories into Fvwm-Crystal +# Written by: Dominique Michel <dom...@so...> 2013 +# see /etc/xdg/user-dirs.defaults + +PipeRead 'test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs; \ +echo "InfoStoreAdd UserMusicDir ${XDG_MUSIC_DIR:-$HOME}"; \ +echo "InfoStoreAdd UserVideosDir ${XDG_VIDEOS_DIR:-$HOME}"' + +#echo "InfoStoreAdd UserDesktopDir ${XDG_DESKTOP_DIR:-$HOME/Desktop}"; \ +#echo "InfoStoreAdd UserDownloadDir ${XDG_DOWNLOAD_DIR:-$HOME}"; \ +#echo "InfoStoreAdd UserTemplatesDir ${XDG_TEMPLATES_DIR:-$HOME}"; \ +#echo "InfoStoreAdd UserPublicShareDir ${XDG_PUBLICSHARE_DIR:-$HOME}"; \ +#echo "InfoStoreAdd UserDocumentsDir ${XDG_DOCUMENTS_DIR:-$HOME}"; \ +#echo "InfoStoreAdd UserPicturesDir ${XDG_PICTURES_DIR:-$HOME}"; \ + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |