Bug 3828 - startx -- :1 doesn't work if serverargs is non-empty in startx
startx -- :1 doesn't work if serverargs is non-empty in startx
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: XFree86 (Show other bugs)
6.0
i386 Linux
low Severity low
: ---
: ---
Assigned To: Preston Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-06-30 11:34 EDT by d-mueth
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-08-31 15:02:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description d-mueth 1999-06-30 11:34:41 EDT
If I set serverargs="-bpp 32" in the startx script, and then
try to launch a second version of X using "startx -- :1",
then startx tries to call xinit as "xinit -- -bpp 32 :1"
which is wrong.  Instead it should be "xinit -- :1 -bpp 32".
My solution was to modify the script as described below.

I believe this will pass all command-line arguments after
the default $serverargs, as desired, but extracts the
$display as an optional parameter which must be passed to
xinit before the server options.

49,53c49,54
<           serverargs="$serverargs $1"
<       case "$1" in
<           :[0-9]) display="$1"
<           ;;
<       esac
---
>           case "$1" in
>           :[0-9]) display="$1";;
>               * ) serverargs="$serverargs $1";;
>           esac
65c66
< xinit $clientargs -- $serverargs
---
> xinit $clientargs -- $display $serverargs
Comment 1 Jay Turner 1999-06-30 12:43:59 EDT
This issue has been forwarded to a developer for further action.
Comment 2 Preston Brown 1999-08-31 15:02:59 EDT
this will be fixed in the forthcoming errata release of XFree86 3.3.5.

Note You need to log in before you can comment on or make changes to this bug.