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 79911 - gfloppy and control-center help don't work
gfloppy and control-center help don't work
Status: RESOLVED FIXED
Product: libgnome
Classification: Deprecated
Component: general
unspecified
Other Linux
: High major
: ---
Assigned To: Federico Mena Quintero
Luis Villa
Depends on:
Blocks:
 
 
Reported: 2002-04-26 01:49 UTC by John Fleck
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: Old
GNOME version: ---



Description John Fleck 2002-04-26 01:49:29 UTC
Click on gfloppy help button:

"/bin/bash: gnome-help: command not found"

No yelp, no nothin'.
Comment 1 John Fleck 2002-04-27 20:03:32 UTC
Now I don't even get that error. Just nothing happens.
Comment 2 Luis Villa 2002-04-29 19:09:18 UTC
triaging in line with all the other help problems.
Comment 3 Glynn Foster 2002-04-30 11:58:01 UTC
Okay, I'm pretty sure this is a problem with libgnome::gnome-help API,
but I can't test this on my machine because it doesn't get built :(
CC'ing the relevant Help GURU's ;)
Comment 4 Mikael Hallendal 2002-04-30 12:01:43 UTC
by looking at your error it looks like you don't have yelp correctly
installed (or not in PATH) since you get the error:

""/bin/bash: gnome-help: command not found""
Comment 5 John Fleck 2002-04-30 15:45:07 UTC
Yelp's installed in PATH, so that's not it. Don't know what other
possibilities there are, so if you can suggest some other explanation
for yelp not being installed correctly I'll check it out.
Comment 6 John Fleck 2002-04-30 15:47:18 UTC
I'll also point out that the "/bin/bash: gnome-help: command not
found" error no longer occurs. Now simply nothing happens at all when
clicking on the help button.
Comment 7 Mikael Hallendal 2002-05-01 02:50:52 UTC
Hmm .. that's weird, I figure that for some reason libgnome doesn't
find it?

Is this the only document this happens for? You seem to have things
working with other documents?
Comment 8 Mikael Hallendal 2002-05-01 03:16:02 UTC
The problem that Nothing happens is that they don't care about the
error-value when calling gnome_help_display (last argument is passed
in NULL).

Sending in a GError and displaying it in a dialog show this:

"Failed to execute child process "gnome-help" (No such file or directory)"

Comment 9 Mikael Hallendal 2002-05-01 03:29:53 UTC
ok, so it's a PATH-problem. Setting the ghelp-uri handler to
/gnome/head/INSTALL/bin/gnome-help instead of just gnome-help solved
the problem with the gfloppy document.

Not sure why it doesn't work with relative path for that program and
others, should be investigated more.
Comment 10 Luis Villa 2002-05-01 14:17:00 UTC
Is this a 2.0.0 level problem? i.e., are a lot of users who aren't
custom installing/building stuff into all kinds of weird prefixes
going to see this? Can we punt to 2.0.1 if that is not going to be the
case?
Comment 11 Mikael Hallendal 2002-05-01 14:27:59 UTC
since we don't know what's causing it I'd say it's probably a
gnome2-problem but it can probably be moved into gfloppy since that is
the only application I've seen that this happens for.
Comment 12 John Fleck 2002-05-01 23:30:14 UTC
Are there other apps that have a help *button* that are known to work?
Comment 13 Mikael Hallendal 2002-05-01 23:35:49 UTC
dunno, are there other applications that has a Help *button*?
if so, which one. 

From what I can see it doesn't really call the help-stuff in libgnome
in any other way than it is being done from an application having it
in the menu.
Comment 14 Jonathan Blandford 2002-05-01 23:36:49 UTC
All the control-center dialogs have help buttons, and none of them
seem to work (let alone be hooked up.)
Comment 15 Mikael Hallendal 2002-05-01 23:41:28 UTC
ok, so, someone has to take a look on what's different between using
gnome_help_display and GNOMEUI_HELP_CONTENTS ("...") or whatever that
macro was called.
Comment 16 Luis Villa 2002-05-14 02:33:15 UTC
Jacob, could you take a look at this, please?
Comment 17 jacob berkman 2002-05-14 16:15:43 UTC
well i don't have a computer that can run gfloppy, but i can try to
look into it.

the older reports of gnome-help might have been because yelp didn't
supply a gnome-help binary before, or something like that.

jody recently hooked up the help buttons, but i don't think the docs
exist.

anyway enough FUD i'll look into i ;)
Comment 18 Federico Mena Quintero 2002-05-17 22:49:08 UTC
CCing myself as I am taking care of #73312.
Comment 19 Federico Mena Quintero 2002-05-21 01:31:34 UTC
Adding an error dialog in case we cannot display help.
Comment 20 Federico Mena Quintero 2002-05-21 01:41:31 UTC
Fixed on CVS.  Please file individual bug reports for the capplets if
there is need for them.
Comment 21 John Fleck 2002-05-21 02:29:04 UTC
I'm going to reopen this. I'm fine if we want to move it to post-2.0,
but the underlying problem - that help doesn't work on gfloppy if it's
installed under a goofy prefix - is still there. The goofy prefix *is*
in my PATH, so the GNOME help functions ought to be able to find it. I
can use gconf-editor to fix the path for gnome-help, but I don't think
we should expect users to figure that out.
Comment 22 Federico Mena Quintero 2002-05-21 15:55:20 UTC
Jfleck, in your setup:

- Where is libgnome installed?
- Where is yelp installed?
- Where is gfloppy installed?
Comment 23 John Fleck 2002-05-21 17:00:35 UTC
In all three cases, they're installed with vbs under the same 
prefix:
~/gnome/head/INSTALL, so the executables are in 
~/gnome/head/INSTALL/bin and the library is under ~/gnome/head/INSTALL/lib.
Comment 24 Federico Mena Quintero 2002-05-21 18:03:08 UTC
And ~/gnome/head/INSTALL/bin is in your PATH.

What error dialog does gfloppy bring up?
Comment 25 John Fleck 2002-05-21 18:46:53 UTC
Until I set the ghelp-uri handler to explicitly 
call
~/gnome/head/INSTALL/bin/gnome-help instead of just gnome-help (as Mikael 
suggested above), I got your new dialog telling me that it couldn't find gnome-
help.

And yes, ~/gnome/head/INSTALL/bin is in my PATH.
Comment 26 Federico Mena Quintero 2002-05-22 16:30:01 UTC
For testing purposes, it would be great if you could please do the
following:

1. Unset the ghelp uri handler.

2. Could you please run gfloppy under gdb and break in
gnome_url_show()?  I'd like to see the contents of the argv array just
before it calls g_spawn_async().

Also, could you please look at the environment at that point?  ("show
env" in gdb)  It would be useful to see the contents of $PATH there.
Comment 27 John Fleck 2002-05-23 03:34:06 UTC
In gdb, I broke at line 341, where it makes the gnome_help_display
call (I couldn't find "gnome_url_show").

From "show env" in the debugger:

PATH=/home/jfleck/gnome/head/INSTALL/bin:/usr/local/bin:/bin:/usr/bin
:/usr/X11R6/bin:/home/jfleck/bin

(gdb) print argv
$1 = (char **) 0xbffff9a4


Comment 28 Federico Mena Quintero 2002-05-23 17:28:31 UTC
Unfortunately this is not enough information.  When can I catch you on
irc to guide you through the debug process?
Comment 29 Luis Villa 2002-05-24 22:09:11 UTC
So... I'm unclear on the status here- is this just a gfloppy specific
bug now, or is it still a general problem?
Comment 30 Federico Mena Quintero 2002-05-27 18:17:45 UTC
OK, this is really weird.  Tracing through the fork()ed grandchild
process and breaking in g_execute() shows that the call to
g_getenv("PATH") is yielding

  $PATH:/sbin:/usr/sbin:/usr:/usr/bin

as a result.  E.g. what you get is bogus; there should be no shell
variable crap in there.

According to jfleck, #83068 could be related and it seems like Gman is
getting that as well.

I don't know if it is some misconfiguration in jfleck's machine or
something; I have no clue where the child process would be getting
that PATH from.

CCing Gman to see if we can get any more info on this.
Comment 31 Federico Mena Quintero 2002-05-27 18:30:48 UTC
Ignore the above; just found the bug.  gfloppy does
putenv("PATH=$PATH:...") in main.c:100.  Will fix in a second.
Comment 32 Federico Mena Quintero 2002-05-27 18:43:57 UTC
Fixed on CVS.  Please update your gnome-utils.