GNOME Bugzilla – Bug 324141
help files installed in wrong place (on non-standard --prefix)
Last modified: 2005-12-21 10:02:56 UTC
Please describe the problem: when building with --prefix=/home/<user> the help files are installed in /home/<user>/share/gnome/help/gnome-schedule. the app does not look here for helpfiles. ------ traceback ----------- Traceback (most recent call last):
+ Trace 64620
self.on_manual_menu_activate (self, args)
gnome.help_display("gnome-schedule", '')
/home/armedgeek/gnome/help/gnome-schedule/gnome-schedule or /usr/share/gnome/help/gnome-schedule. Please check your installation ------------ traceback ----------------- Steps to reproduce: 1. ./autogen.sh --prefix=/home/<user> 2. make 3. make install 4. gnome-schedule 5. click "help" button Actual results: The app starts and runs fine, but the helpfiles are unavailable. either the app is looking in the wrong place or the files are installed in the wrong place depending on gnome-dev standards i guess Expected results: i would expect the help files to open Does this happen every time? if installed in user's home Other information: not sure if the files are installed in the wrong place or if the app is looking in the wrong place, it does appear (based on where the app is looking) that a standard prefix of /usr or /usr/local would probably work fine.
Only works in /usr
Seems like this isn't a problem in gnome-2.10; http://mail.gnome.org/archives/gnome-devel-list/2005-December/msg00013.html What version are you running?
About version: I've just checked out gnome-schedule from cvs. Gaute, just attach strace log here or grep it for gnome-schedule.xml to see where does it really search for files.
Created attachment 56062 [details] strace log when trying to open help. 'strace -f "src/gnome-schedule.py" >& strace.log' 'grep gnome-schedule.xml', however it just looks in the dir; try 'grep gnome-schedule' doesn't output anything, perhaps yelp output doesn't get into the log Here is the output to the terminal: Traceback (most recent call last):
+ Trace 64642
gnome.help_display('gnome-schedule')
/home/gaute/test//share//gnome/help/gnome-schedule/gnome-schedule or /usr/share/gnome/help/gnome-schedule. Please check your installation
I think this would work fine if it didn't append the latest 'gnome-schedule' in '/home/gaute/test//share//gnome/help/gnome-schedule/gnome-schedule', but I don't know why it appends this when it isn't installed in '/usr'
Hm, Gaute, in our projects we use gnome_help_display ("file.xml", NULL, &err); Note that there is an .xml in doc filename. Can it be the reason of problem?
No change.
Are you sure? Please attach updated strace.
Created attachment 56075 [details] strace log when trying to open help. I don't think there is a function that includes the error enum. in gnome-python. def on_manual_menu_activate (self, *args): gnome.help_display("gnome-schedule.xml", None)
Quite frankly i don't think help_display cares about any of the arguments given.
've found it: http://cvs.gnome.org/viewcvs/libgnome/libgnome/gnome-help.c?r1=1.43&r2=1.44 Here is the change that breaks things. So we need to look at the bug 84148
The reason is before help dir is searched in prefix/share/help/program_name/doc_id/ and doc_id was "", now it became program name.
Fixed. ChangeLog: * src/gnome-schedule.py, src/scheduleapplet.py, src/mainWindow.py: fixed bug 324141, using help_display_with_doc_id and not, help_display