This forum has been archived. All content is frozen. Please use KDE Discuss instead.

enabling plugins, specifically skg_statistic

Tags: None
(comma "," separated)
User avatar
skierpage
Registered Member
Posts
23
Karma
0
OS
There's a skg_statistic plugin that seems to write out some useful debugging info. It's shipped with Skrooge and even has a .desktop file, and if I export SKGTRACE=10 and run skrooge from the command line it reports that it is loading and refreshing; but I can't see how to access it or enable it. There's no menu or setting to configure advanced plugins or this particular one. The Skrooge Handbook mentions the plugins that implement many aspects of Skrooge but not this one or enabling additional plugins. What's the secret?

Why do I care?

I wasn't sure how the list of bank icons worked. I see there's a /usr/share/skrooge/images/logo/l10n/us/list_bank.txt but Skrooge doesn't seem to use it. The code tries to load "skrooge/images/logo/l10n/" % QLocale::countryToString(QLocale().country()) % "/list_bank.txt", so I wonder what KDE/Qt thinks my QLocale().country() is? Well, skgstatistic prints this out... somehow.

I know, I know, I should build Skrooge myself and step through it in the debugger. ;)
User avatar
smankowski
Moderator
Posts
1047
Karma
7
OS
skierpage wrote:There's a skg_statistic plugin that seems to write out some useful debugging info. It's shipped with Skrooge and even has a .desktop file, and if I export SKGTRACE=10 and run skrooge from the command line it reports that it is loading and refreshing; but I can't see how to access it or enable it. There's no menu or setting to configure advanced plugins or this particular one. The Skrooge Handbook mentions the plugins that implement many aspects of Skrooge but not this one or enabling additional plugins. What's the secret?

Why do I care?

This plugin is not yet operational.
I'm careful because the subject is sensitive.
Indeed the goal of this plugin is to produce statistics on the use of Skrooge, which functions are used, which are not and other information.
For the moment this information is created in ${HOME}/.skrooge.
One xxx_stats.txt file per skrooge document.
But at the moment I haven't found a suitable way to harvest them.
skierpage wrote:I wasn't sure how the list of bank icons worked. I see there's a /usr/share/skrooge/images/logo/l10n/us/list_bank.txt but Skrooge doesn't seem to use it. The code tries to load "skrooge/images/logo/l10n/" % QLocale::countryToString(QLocale().country()) % "/list_bank.txt", so I wonder what KDE/Qt thinks my QLocale().country() is? Well, skgstatistic prints this out... somehow.

I know, I know, I should build Skrooge myself and step through it in the debugger. ;)

Skrooge uses your country to open the appropriate list of icon bank. If this doesn't exist the global list is used.
In statistics, you can find something like this:
Code: Select all
"current.country": "France",

This is computed with this:
Code: Select all
QLocale::countryToString(QLocale().country())


I hope this will help you.


Skrooge, a personal finances manager powered by KDE
Image - PayPal


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]