Krunner doesn't read settings
Giuseppe Calà
jiveaxe at gmail.com
Fri Aug 17 14:37:32 UTC 2012
Hi, hi posted the following issue some weeks ago in IRC, but didn't
get much help. So I hope that this ML is a more appropriate place.
I'm the developer of two krunner extensions:
Browse Firefox Bookmarks [1]
Browse Chromium Bookmarks [2]
An user alerted me that one of the extension doesn't work in kde 4.9.
I've checked and actually seems that extension's settings in krunnerrc
aren't loaded. Strangely, same problem with the other extension.
This is the routine that loads settings:
void BrowseFirefoxBookmarksRunner::reloadConfiguration()
{
KConfigGroup grp = config();
m_profilesPath.setPath(grp.readEntry("ProfilesPath",
QDir::homePath() + QDir::separator() + ".mozilla/firefox/"));
m_profileName = grp.readEntry("Name", "");
m_profileFolder = grp.readEntry("Folder", "");
m_enabledBookmarksFolders = grp.readEntry("EnabledBookmarksFolders", "2");
m_triggerWord = config().readEntry("trigger", i18n("bfb"));
//Processing will be triggered by "keyword "
m_triggerWord += QLatin1Char( ' ' );
m_requireTriggerWord = config().readEntry("requireTriggerWord", true);
createConnection();
loadBookmarks();
}
m_profileName and m_profileFolder are empty even though kruunerrc contains:
[Runners][Browse Firefox Bookmarks Runner]
EnabledBookmarksFolders=,3
Folder=iih5bt2y.default
Name=default
ProfilesPath=/home/gcala/.mozilla/firefox
requireTriggerWord=false
trigger=bfb
Launching krunner from konsole I got the following output:
[gcala at chakra ~]$ killall krunner && krunner
QDBusConnection: session D-Bus connection created before
QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before
QCoreApplication. Application may misbehave.
krunner(31710)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't
know "/home/gcala/.kde4/share/apps/kabc"
krunner(31710) KDevelopSessions::KDevelopSessions: INIT KDEV
krunner(31710) KDevelopSessions::loadSessions: LOADSESSION!.>>>
krunner(31710) KDevelopSessions::loadSessions: NEW SESSION:
"/home/gcala/.kde4/share/apps/kdevelop/sessions/{d8044ddb-4e73-4d79-b99c-9a0db2a53116}/sessionrc"
krunner(31710) KDevelopSessions::loadSessions: session: "default" "default"
*********m_profileName = ""
*********m_profileFolder = ""
...
anything special...
The extension's kcmodule class to load and save setting, instead, works fine.
Have read kde 4.9 changelog but nothing about krunner; what could be
the problem?
Thanks,
Giuseppe
[1] http://kde-apps.org/content/show.php/Browse+Firefox+Bookmarks?content=141042
[2] http://kde-apps.org/content/show.php/Browse+Chromium+Bookmarks?content=137685
More information about the Plasma-devel
mailing list