#571184 Check for --help before $DISPLAY

Package:
xtightvncviewer
Source:
tightvnc
Description:
virtual network computing client software for X
Submitter:
"Trent W. Buck"
Date:
2010-02-27 08:12:04 UTC
Severity:
wishlist
#571184#5
Date:
2010-02-24 05:22:43 UTC
From:
To:
This is stupid.  I should be able to get the command-line options
BEFORE starting X:

    $ xtightvncviewer --help
    Error: Can't open display:
    $ xinit /usr/bin/xtightvncviewer --help
    [help output...]

#571184#10
Date:
2010-02-26 16:43:01 UTC
From:
To:
Hi

This is probably so. VNC has a bit strange syntax.

Are you really sure you got VNC help screen here, and not xinit help?

man xtightvncviewer?

// Ola

#571184#15
Date:
2010-02-26 16:46:39 UTC
From:
To:
Ola Lundqvist wrote:

Yes.  Here's the full output:

    $ xinit /usr/bin/xtightvncviewer --help


    X.Org X Server 1.7.5
    Release Date: 2010-02-16
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.32-trunk-686 i686 Debian
    Current Operating System: Linux Clio 2.6.32-trunk-686 #1 SMP Sun Jan 10 06:32:16 UTC 2010 i686
    Kernel command line: initrd=/boot/initrd.img-2.6.32-trunk-686 root=LABEL=root ro quiet BOOT_IMAGE=/boot/vmlinuz-2.6.32-trunk-686
    Build Date: 16 February 2010  08:37:23AM
    xorg-server 2:1.7.5-1 (bgoglin@debian.org)
    Current version of pixman: 0.16.4
            Before reporting problems, check http://wiki.x.org
            to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
            (++) from command line, (!!) notice, (II) informational,
            (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 27 03:44:22 2010
    (==) Using default built-in configuration (30 lines)
    (EE) Failed to load module "vesa" (module does not exist, 0)
    (EE) Failed to load module "fbdev" (module does not exist, 0)
    FATAL: Module fbcon not found.
    SELinux: Disabled on system, not enabling in X server
    record: RECORD extension enabled at configure time.
    record: This extension is known to be broken, disabling extension now..
    record: http://bugs.freedesktop.org/show_bug.cgi?id=20500
    (EE) AIGLX error: dlopen of /usr/lib/dri/i915_dri.so failed (/usr/lib/dri/i915_dri.so: cannot open shared object file: No such file or directory)
    (EE) AIGLX: reverting to software rendering
    (EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
    (EE) GLX: could not load software renderer
    (EE) ioctl EVIOCGNAME failed: Inappropriate ioctl for device
    (EE) PreInit returned NULL for ""SynPS/2 Synaptics TouchPad""
    TightVNC Viewer version 1.3.9

    Usage: /usr/bin/xtightvncviewer [<OPTIONS>] [<HOST>][:<DISPLAY#>]
           /usr/bin/xtightvncviewer [<OPTIONS>] [<HOST>][::<PORT#>]
           /usr/bin/xtightvncviewer [<OPTIONS>] -listen [<DISPLAY#>]
           /usr/bin/xtightvncviewer -help

    <OPTIONS> are standard Xt options, or:
            -via <GATEWAY>
            -shared (set by default)
            -noshared
            -viewonly
            -fullscreen
            -noraiseonbeep
            -passwd <PASSWD-FILENAME> (standard VNC authentication)
            -encodings <ENCODING-LIST> (e.g. "tight copyrect")
            -bgr233
            -owncmap
            -truecolour
            -depth <DEPTH>
            -compresslevel <COMPRESS-VALUE> (0..9: 0-fast, 9-best)
            -quality <JPEG-QUALITY-VALUE> (0..9: 0-low, 9-high)
            -nojpeg
            -nocursorshape
            -x11cursor
            -autopass

    Option names may be abbreviated, e.g. -bgr instead of -bgr233.
    See the manual page for more information.

    waiting for X server to shut down

    $

#571184#20
Date:
2010-02-26 16:48:36 UTC
From:
To:
Hi Trent

Interesting. If you just type xtightvncviewer without the --help, then
you get the help text, right?

// Ola

#571184#25
Date:
2010-02-27 01:51:41 UTC
From:
To:
Ola Lundqvist wrote:

No.  Without arguments:

    $ xtightvncviewer
    Error: Can't open display:

If I run it in X (i.e. "xinit /usr/bin/xtightvncviewer"), it prompts
me for a server to connect to, by popping up an X client window.

#571184#30
Date:
2010-02-27 08:10:17 UTC
From:
To:
Interesting. Thanks. I'll see what I can do about this.

Best regards,

// Ola