Author: tgoettlicher Date: Thu Jun 4 16:52:27 2009 New Revision: 57449 URL: http://svn.opensuse.org/viewcvs/yast?rev=57449&view=rev Log: - Added support for $XDG_CONFIG_HOME (bnc #509891) - V 2.13.11 Modified: branches/SuSE-SLE-10-SP3-Branch/control-center/VERSION branches/SuSE-SLE-10-SP3-Branch/control-center/package/yast2-control-center.changes branches/SuSE-SLE-10-SP3-Branch/control-center/src/yastmodules.cpp Modified: branches/SuSE-SLE-10-SP3-Branch/control-center/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/control-center/VERSION?rev=57449&r1=57448&r2=57449&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/control-center/VERSION (original) +++ branches/SuSE-SLE-10-SP3-Branch/control-center/VERSION Thu Jun 4 16:52:27 2009 @@ -1 +1 @@ -2.13.10 +2.13.11 Modified: branches/SuSE-SLE-10-SP3-Branch/control-center/package/yast2-control-center.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/control-center/package/yast2-control-center.changes?rev=57449&r1=57448&r2=57449&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/control-center/package/yast2-control-center.changes (original) +++ branches/SuSE-SLE-10-SP3-Branch/control-center/package/yast2-control-center.changes Thu Jun 4 16:52:27 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Jun 4 16:50:47 CEST 2009 - tgoettlicher@suse.de + +- Added support for $XDG_CONFIG_HOME (bnc #509891) +- V 2.13.11 + +------------------------------------------------------------------- Mon Mar 19 14:19:48 CET 2007 - sh@suse.de - Added split-provides (bug #255368) Modified: branches/SuSE-SLE-10-SP3-Branch/control-center/src/yastmodules.cpp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/control-center/src/yastmodules.cpp?rev=57449&r1=57448&r2=57449&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/control-center/src/yastmodules.cpp (original) +++ branches/SuSE-SLE-10-SP3-Branch/control-center/src/yastmodules.cpp Thu Jun 4 16:52:27 2009 @@ -120,7 +120,17 @@ bool YModules::initGroups() { - QDir dir( GROUPS_DESKTOP_DIR "/", "*.desktop" ); + QString Groups_Desktop_Dir( GROUPS_DESKTOP_DIR ); + + const char *desktop_dir_cstr = getenv( "XDG_CONFIG_HOME" ); + + if( desktop_dir_cstr ) + { + Groups_Desktop_Dir = desktop_dir_cstr; + Groups_Desktop_Dir += "/groups/"; + } + + QDir dir( Groups_Desktop_Dir, "*.desktop" ); if ( ! dir.exists() ) { @@ -143,7 +153,16 @@ bool YModules::initModules() { - QDir dir( MODULES_DESKTOP_DIR "/", "*.desktop" ); + QString Modules_Desktop_Dir( MODULES_DESKTOP_DIR ); + + const char *desktop_dir_cstr = getenv( "XDG_CONFIG_HOME" ); + + if( desktop_dir_cstr ) + { + Modules_Desktop_Dir = desktop_dir_cstr; + } + + QDir dir( Modules_Desktop_Dir, "*.desktop" ); if ( ! dir.exists() ) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org