Fix the saving of the profile configuration by always saving it under

$KDEHOME. Profile::path always pointed to my $KDEDIR which was fine since
it was writable by me (and would thus get saved), but as soon as my nightly
build process finished, I'd lose my profile settings.

Since konsole is kdeinit enabled, this is a friendly reminder you'll most
likely need to restart kdeinit4 in order for the fix to take effect.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=738539
wilder-portage
Matt Rogers 19 years ago
parent 9e87abdf01
commit b43902b568
  1. 11
      src/Profile.cpp

@ -234,15 +234,10 @@ void Profile::registerName(Property property , const QString& name)
QString KDE4ProfileWriter::getPath(const Profile* info)
{
QString newPath;
if ( info->isPropertySet(Profile::Path) )
newPath=info->path();
// if the path is not specified, not absolute or not writable use the profile name + ".profile"
if ( newPath.isEmpty() || !QFileInfo(newPath).isAbsolute() || !KStandardDirs::checkAccess(newPath, W_OK) )
newPath = KGlobal::dirs()->saveLocation("data","konsole/") + info->name() + ".profile";
// use the profile name + ".profile" and save it in $KDEHOME
newPath = KGlobal::dirs()->saveLocation("data","konsole/") + info->name() + ".profile";
qDebug() << "Saving profile under name: " << newPath;
kDebug(1211) << "Saving profile under name: " << newPath;
return newPath;
}

Loading…
Cancel
Save