After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748167 - The document does not exist Location "help: my-program" does not control the right side. Edit
The document does not exist Location "help: my-program" does not control the ...
Status: RESOLVED NOTABUG
Product: yelp
Classification: Applications
Component: General
3.10.x
Other Linux
: Normal blocker
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-20 07:51 UTC by Tuomas Lähteenmäki
Modified: 2015-04-24 10:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tuomas Lähteenmäki 2015-04-20 07:51:54 UTC
I made a litte program in Ubuntu quickly. And im find a bug in pygtk yelp help system. The program does not find the correct language settings.

my language is Finnish. (default)
1. open program
2. press F1 to open Contens
3. Help is opening and say in Finnish.

Asiakirjaa ei löydy
Sijainti ”ghelp:my-program” ei ohjaa oikealle sivulle.

and same in english
The document does not exist
Location "help: my-program" does not control the right side.

i made help files in path

myprogram/help/fi/
* index.page
* preferences.page
* topic.page

if im choosing english language pack (this maybe is default path)
myprogram/help/c/

Are there any instructions. I could not find anything. I assume that the path is as myprogram/help/fi/

Help show correct it when go to the menu and press F1 and click the program menu show all help documents.

But not working in program when im pressing F1 Contents. Gtk program not find or select correct language.
Comment 1 Tuomas Lähteenmäki 2015-04-20 07:53:35 UTC
Not working In Ubuntu 14.04 and Ubuntu MATE 14.10.
Comment 2 Tuomas Lähteenmäki 2015-04-20 08:11:45 UTC
 dpkg -L tax-calculator | grep "help"
/usr/lib/python2.7/dist-packages/tax_calculator_lib/helpers.py
/usr/share/help
/usr/share/help/fi
/usr/share/help/fi/tax-calculator
/usr/share/help/fi/tax-calculator/figures
/usr/share/help/fi/tax-calculator/figures/icon.png
/usr/share/help/fi/tax-calculator/figures/Verolaskuri-opas-malli.png
/usr/share/help/fi/tax-calculator/topic1.page
/usr/share/help/fi/tax-calculator/index.page
/usr/share/help/fi/tax-calculator/preferences.page
/usr/share/help/C
/usr/share/help/C/tax-calculator
/usr/share/help/C/tax-calculator/figures
/usr/share/help/C/tax-calculator/figures/Tax-guide-example.png
/usr/share/help/C/tax-calculator/figures/icon.png
/usr/share/help/C/tax-calculator/topic1.page
/usr/share/help/C/tax-calculator/index.page
/usr/share/help/C/tax-calculator/preferences.page
Comment 3 David King 2015-04-21 09:41:57 UTC
A help URI for the path that you have installed your Mallard pages into (/usr/share/help/*/tax-calculator) would be "help:tax-calculator". Can you try running yelp as:

yelp help:tax-calculator

and report on whether that fixes the problem?
Comment 4 Tuomas Lähteenmäki 2015-04-23 19:38:56 UTC
$ yelp help:tax-calculator

** (yelp:17137): WARNING **: Failed to get GNOME shell mode: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No feature ”Mode”
err:ntdll:RtlpWaitForCriticalSection section 0x7ea64284 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0025, blocked by 0024, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7ea64284 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0022, blocked by 0009, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7ea64284 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0025, blocked by 0024, retrying (60 sec)

It is show normal in my language if im using command line with: yelp help:tax-calculator

But when im using program is not.

$ tax-calculator debug

** (yelp:17183): WARNING **: Failed to get GNOME shell mode: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No feature ”Mode”
err:ntdll:RtlpWaitForCriticalSection section 0x7ea64284 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0025, blocked by 0024, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7ea64284 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0022, blocked by 0009, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7ea64284 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0025, blocked by 0024, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7ea64284 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0022, blocked by 0009, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7ea64284 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0025, blocked by 0024, retrying (60 sec)

This is a big problem also other programs when im using yelp in my locales. Like finnish. It is show error. Im not sure is this 100% bug in yelp. Since it is limited to only all pygtk programs.

Im tested this in Ubuntu 14.04 64-bit and Ubuntu MATE 14.10 32-bit.

my little testing program source found in my webpages http://linux.ylasiirtola.net/tax-calculator/
Comment 5 David King 2015-04-23 20:18:04 UTC
That probably means that the environment in your session (or that of your application) and terminal are different. You should check to see whether the locale environment variables (LANG, LC_ALL and so on) are set correctly in each case. "man 7 locale" should help to describe the possible environment variables.

You guessed correctly that this is not a Yelp bug. Bugzilla is not a good forum for support requests, but you can feel free to contact me by email, or maybe a suitable mailing list. I do not know of a good mailing list for pygtk questions, and I do not know much Python, but I can try to help.
Comment 6 Tuomas Lähteenmäki 2015-04-24 10:26:16 UTC
thanks.