On Tue, Jun 20, 2006 at 03:03:11PM -0500, Jason Martens wrote:
> On Tue, 2006-06-20 at 15:43 -0400, Justin Pryzby wrote:
> > On Tue, Jun 20, 2006 at 01:57:01PM -0500, Jason Martens wrote:
> > > On Tue, 2006-06-20 at 14:32 -0400, Justin Pryzby wrote:
> > > > On Tue, Jun 20, 2006 at 01:11:44PM -0500, Jason Martens wrote:
> > > > > On Tue, 2006-06-20 at 12:48 -0400, Justin Pryzby wrote:
> > > <snip>
> > > > > If I prefixed the time command to firefox in preferred apps, how can I
> > > > > see the output?
> > > > I mean if you run it from the commandline eg. a virtual terminal or an
> > > > xterm; is this how you tried the commandline flags before, or were you
> > > > modifying eg. the "gaim" "how to use my web browser" entry?
> > > 
> > > I have been modifying the Desktop->Preferences->Preferred Applications
> > > gnome preferences setting.  I'm not quite sure what running firefox from
> > > a command line gains me, because the problem is that firefox is not
> > > started automatically when I click a link from another gnome program.
> > > How is running firefox with the time command or from a terminal going to
> > > help here?
> > I want to know if the command firefox -new-window fails, or if the
> > problem is elsewhere.
> > 
> [EMAIL PROTECTED]:~$ time
> LD_LIBRARY_PATH=/usr/lib/firefox /usr/lib/firefox/firefox-bin; echo $?
> 
> real    0m0.091s
> user    0m0.028s
> sys     0m0.028s
> 0
> 
> Worked fine.
I'm guessing that you already had a firefox window opened, and that
this merely created a new tab, and then returned?  (Otherwise I would
have expected your browsing session to last a bit longer :)

Please try all the various combinations of:

  . with and without an already-running firefox process
  . running just firefox, vs. running with both LD_LIBRARY_PATH and
    the path prefix /u/l/f-b/
  . with and without various commandline arguments, like -new-window
    and such

How do you get your initial firefox window to show up?  I guess you
have to start it manually, and only afterwards do "implicit" actions
like link activations work?

Justin

==============================================================
Ignore the following since I think it won't work for you (yet)
==============================================================

When you start it without any already-running FF process from within
gnome, what is its parent PID (ps -ef)?  If it is not init (1), you
might try stracing that process before attempting to launch firefox in
the failing case:

  strace -f -e execve -p <pid of the parent of firefox when it worked>

If it forks way to many processes to look through, you might have to
add the following to the previous command:
  
  2>&1 |grep -E 'firefox|browser'

The goal is to find a line that looks like:

  execve("/usr/lib/firefox/firefox-bin", ["/usr/lib/firefox/firefox-bin"], [/* 
24 vars */]) = 0

You might end up adding the following modifier to the strace command
(eg. before the "-f"), if the interesting part gets truncated:

  -s 9999

I'll note that you should be able to "^C" the strace process when
you're done, but experience tells me that you should be prepared for
the straced process to crash.  Since it is probably some internal
gnome component, I would suggest to attempt this only on a
freshly-loaded X session, without loading any kind of thesis data or
such :)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to