Reply to topic

enabling plugins, specifically skg_statistic

User avatar skierpage
Registered Member
Posts
17
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
1002
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

 
Reply to topic

Bookmarks



Who is online

Registered users: annyone, Baidu [Spider], Bing [Bot], bogkuz, claydoh, cmb, denispyr, Don B. Cilly, farid, gfielding, Google [Bot], Majestic-12 [Bot], ostroffjh, Section_8, shurato, Sogou [Bot], Steve R.