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 324141 - help files installed in wrong place (on non-standard --prefix)
help files installed in wrong place (on non-standard --prefix)
Status: RESOLVED FIXED
Product: gnome-schedule
Classification: Other
Component: general
0.9.0
Other All
: Normal major
: ---
Assigned To: GNOME Schedule Maintainers
GNOME Schedule Maintainers
Depends on:
Blocks: 324135
 
 
Reported: 2005-12-15 01:58 UTC by Robert West
Modified: 2005-12-21 10:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
strace log when trying to open help. (668.11 KB, text/plain)
2005-12-16 10:26 UTC, Gaute Hope
Details
strace log when trying to open help. (694.83 KB, text/plain)
2005-12-16 15:24 UTC, Gaute Hope
Details

Description Robert West 2005-12-15 01:58:39 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):
  • File "/home/armedgeek/share/gnome-schedule/mainWindow.py", line 478 in on_help_button_clicked
    self.on_manual_menu_activate (self, args)
  • File "/home/armedgeek/share/gnome-schedule/mainWindow.py", line 515 in on_manual_menu_activate
    gnome.help_display("gnome-schedule", '')
gobject.GError: Unable to find the help files in either
/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.
Comment 1 Gaute Hope 2005-12-15 11:47:17 UTC
Only works in /usr
Comment 2 Gaute Hope 2005-12-15 23:03:24 UTC
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?
Comment 3 Nickolay V. Shmyrev 2005-12-16 00:00:49 UTC
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.
Comment 4 Gaute Hope 2005-12-16 10:26:23 UTC
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):
  • File "/home/gaute/Prosjekt/GNOME/gnome-schedule/src/mainWindow.py", line 480 in on_help_button_clicked
    self.on_manual_menu_activate (self, args)
  • File "/home/gaute/Prosjekt/GNOME/gnome-schedule/src/mainWindow.py", line 517 in on_manual_menu_activate
    gnome.help_display('gnome-schedule')
gobject.GError: Unable to find the help files in either
/home/gaute/test//share//gnome/help/gnome-schedule/gnome-schedule or
/usr/share/gnome/help/gnome-schedule.  Please check your installation
Comment 5 Gaute Hope 2005-12-16 10:27:29 UTC
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'
Comment 6 Nickolay V. Shmyrev 2005-12-16 15:07:13 UTC
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?
Comment 7 Gaute Hope 2005-12-16 15:13:26 UTC
No change.
Comment 8 Nickolay V. Shmyrev 2005-12-16 15:14:19 UTC
Are you sure? Please attach updated strace.
Comment 9 Gaute Hope 2005-12-16 15:24:42 UTC
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)
Comment 10 Gaute Hope 2005-12-16 15:25:24 UTC
Quite frankly i don't think help_display cares about any of the arguments given.
Comment 11 Nickolay V. Shmyrev 2005-12-16 15:53:34 UTC
'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
Comment 12 Nickolay V. Shmyrev 2005-12-16 15:55:59 UTC
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.
Comment 13 Gaute Hope 2005-12-21 10:02:56 UTC
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