From kde-commits Thu Oct 15 15:07:15 2009 From: =?utf-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 15 Oct 2009 15:07:15 +0000 To: kde-commits Subject: KDE/kdebase/apps Message-Id: <1255619235.294394.17845.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125561924100608 SVN commit 1035639 by lunakl: xdg-user-dirs paths must be in "" M +2 -2 konqueror/settings/konq/globalpaths.cpp M +1 -1 lib/konq/konq_operations.cpp --- trunk/KDE/kdebase/apps/konqueror/settings/konq/globalpaths.cpp #1035638:1035639 @@ -249,7 +249,7 @@ const QString userDirsFile(KGlobal::dirs()->localxdgconfdir() + QLatin1String("user-dirs.dirs")); KConfig xdgUserConf( userDirsFile, KConfig::SimpleConfig ); KConfigGroup g( &xdgUserConf, "" ); - g.writeEntry( "XDG_DESKTOP_DIR", translatePath( urlDesktop ) ); + g.writeEntry( "XDG_DESKTOP_DIR", "\"" + translatePath( urlDesktop ) + "\"" ); pathChanged = true; } } @@ -308,7 +308,7 @@ const QString userDirsFile(KGlobal::dirs()->localxdgconfdir() + QLatin1String("user-dirs.dirs")); KConfig xdgUserConf(userDirsFile, KConfig::SimpleConfig); KConfigGroup g(&xdgUserConf, ""); - g.writeEntry(xdgKey, translatePath(path)); + g.writeEntry(xdgKey, "\"" + translatePath(path) + "\""); return true; } } --- trunk/KDE/kdebase/apps/lib/konq/konq_operations.cpp #1035638:1035639 @@ -717,7 +717,7 @@ const QString userDirsFile(KGlobal::dirs()->localxdgconfdir() + QLatin1String("user-dirs.dirs")); KConfig xdgUserConf( userDirsFile, KConfig::SimpleConfig ); KConfigGroup g( &xdgUserConf, "" ); - g.writeEntry( "XDG_DESKTOP_DIR", translatePath( newurl.path() ) ); + g.writeEntry( "XDG_DESKTOP_DIR", "\"" + translatePath( newurl.path() ) + "\"" ); KGlobalSettings::self()->emitChange(KGlobalSettings::SettingsChanged, KGlobalSettings::SETTINGS_PATHS); } }