Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43195 - error when starting firefox "xwininfo: unable to open display '10.0'"
Summary: error when starting firefox "xwininfo: unable to open display '10.0'"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low trivial (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-28 04:48 UTC by Ralph Mitchell
Modified: 2004-03-18 17:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix display parsing (firefox-display.patch,391 bytes, patch)
2004-03-17 19:25 UTC, Aron Griffis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Mitchell 2004-02-28 04:48:50 UTC
Every time I start firefox from the command line I get:

   xwininfo:  unable to open display '10.0'

followed by the xwininfo usage message.  At line 46 in /usr/bin/firefox xdpyinfo is used to discover the display name and the number of screens available by piping the output through awk, which splits the name on the first dot.  In my case, the display name is an IP address (10.x.x.x:0.0), though I believe the same problem would occur if the display name was fully-qualified (host.domain.org:0.0).  To be strictly accurate, the awk script should split on the *last* dot on the line, and then only if it occurs after a colon.

Reproducible: Always
Steps to Reproduce:
1.export DISPLAY=[your ip address here]:0.0
2.firefox
Actual Results:  
$ firefox
xwininfo:  unable to open display '10.0'
usage:  xwininfo [-options ...]

where options include:
    -help                print this message
    -display host:dpy    X server to contact
    -root                use the root window
    -id windowid         use the window with the specified id
    -name windowname     use the window with the specified name
    -int                 print window id in decimal
    -children            print parent and child identifiers
    -tree                print children identifiers recursively
    -stats               print window geometry [DEFAULT]
    -bits                print window pixel information
    -events              print events selected for on window
    -size                print size hints
    -wm                  print window manager hints
    -shape               print shape extents
    -frame               don't ignore window manager frames
    -english             print sizes in english units
    -metric              print sizes in metric units
    -all                 -tree, -stats, -bits, -events, -wm, -size, -shape


Expected Results:  
No messages, just start firefox.
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-03-17 19:25:08 UTC
Created attachment 27537 [details, diff]
patch to fix display parsing

Please try the following patch.  Let me know if it works for you.
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-03-18 17:35:19 UTC
committed to cvs