Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 765206 Details for
Bug 746227
net-misc/tigervnc-1.11.0-r2[server] different calling conventions for vncserver startup
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
tigervnc-1.12.0-vncserver.in.patch (text/plain), 1.62 KB, created by
Norman Back
on 2022-02-15 19:37:48 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Norman Back
Created:
2022-02-15 19:37:48 UTC
Size:
1.62 KB
patch
obsolete
>--- a/unix/vncserver/vncserver.in 2022-02-14 17:09:13.818945751 +0000 >+++ b/unix/vncserver/vncserver.in 2022-02-14 20:30:24.823104744 +0000 >@@ -27,8 +27,12 @@ > # vncserver - wrapper script to start an X VNC server. > # > >+# Get the args >+my ($display, $xsession) = @ARGV; >+ > # First make sure we're operating in a sane environment. >-&SanityCheck(); >+ >+&SanityCheck($xsession); > > # > # Global variables. You may want to configure some of these for >@@ -83,7 +87,7 @@ > } > > # Find display number. >-if ((@ARGV == 1) && ($ARGV[0] =~ /^:(\d+)$/)) { >+if ( ( (@ARGV == 1) || (@ARGV == 2) ) && ($ARGV[0] =~ /^:(\d+)$/)) { > $displayNumber = $1; > if (!&CheckDisplayNumber($displayNumber)) { > die "A VNC server is already running as :$displayNumber\n"; >@@ -411,13 +415,15 @@ > > sub Usage > { >- die("\nusage: $prog <display>\n\n"); >+ die("\nusage: $prog <display> [<xsession-file>]\n\n"); > } > > > # Routine to make sure we're operating in a sane environment. > sub SanityCheck > { >+ my($xsessionfile) = @_; >+ > local ($cmd); > > # Get the program name >@@ -437,12 +443,16 @@ > die "$prog: couldn't find \"$cmd\" on your PATH.\n"; > } > >- foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession") { >- if (-x "$cmd") { >- $Xsession = $cmd; >- last; >+ if (-x "$xsessionfile"){ >+ $Xsession = $xsessionfile >+ } else { >+ foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession") { >+ if (-x "$cmd") { >+ $Xsession = $cmd; >+ last; >+ } > } >- } >+ } > if (not defined $Xsession) { > die "$prog: Couldn't find suitable Xsession.\n"; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 746227
:
663613
|
676600
|
676603
|
765203
|
765204
|
765205
| 765206 |
765207
|
765208