Changeset View
Changeset View
Standalone View
Standalone View
kcms/krdb/krdb.cpp
Show First 20 Lines • Show All 743 Lines • ▼ Show 20 Line(s) | 666 | { | |||
---|---|---|---|---|---|
744 | // very primitive support for ~/.Xresources by appending it | 744 | // very primitive support for ~/.Xresources by appending it | ||
745 | if ( QFile::exists( xResources ) ) | 745 | if ( QFile::exists( xResources ) ) | ||
746 | copyFile(tmpFile, xResources, true); | 746 | copyFile(tmpFile, xResources, true); | ||
747 | else | 747 | else | ||
748 | copyFile(tmpFile, homeDir + "/.Xdefaults", true); | 748 | copyFile(tmpFile, homeDir + "/.Xdefaults", true); | ||
749 | 749 | | |||
750 | // Export the Xcursor theme & size settings | 750 | // Export the Xcursor theme & size settings | ||
751 | KConfigGroup mousecfg(KSharedConfig::openConfig( QStringLiteral("kcminputrc") ), "Mouse" ); | 751 | KConfigGroup mousecfg(KSharedConfig::openConfig( QStringLiteral("kcminputrc") ), "Mouse" ); | ||
752 | QString theme = mousecfg.readEntry("cursorTheme", QString()); | 752 | QString theme = mousecfg.readEntry("cursorTheme", QString("breeze_cursors")); | ||
753 | QString size = mousecfg.readEntry("cursorSize", QString()); | 753 | QString size = mousecfg.readEntry("cursorSize", QString("0")); | ||
meven: 0 is unintuitive, it is for "default"/autodetermined I guess. | |||||
754 | QString contents; | 754 | QString contents; | ||
755 | 755 | | |||
756 | if (!theme.isNull()) | 756 | if (!theme.isNull()) | ||
757 | contents = "Xcursor.theme: " + theme + '\n'; | 757 | contents = "Xcursor.theme: " + theme + '\n'; | ||
758 | 758 | | |||
759 | if (!size.isNull()) | 759 | if (!size.isNull()) | ||
760 | contents += "Xcursor.size: " + size + '\n'; | 760 | contents += "Xcursor.size: " + size + '\n'; | ||
761 | 761 | | |||
▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines |
0 is unintuitive, it is for "default"/autodetermined I guess.