VirtualBox

Changeset 52109 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Jul 21, 2014 12:50:39 PM (11 years ago)
Author:
vboxsync
Message:

Additions/x11/VBoxClient: do not start VBoxClient on ssh connections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/Installer/98vboxadd-xclient

    r50714 r52109  
    2222done
    2323
    24 # Check whether the display we are running on running a known buggy version
    25 # of X.Org which might crash when we resize.
    26 no_display=
    27 xorgbin=Xorg
    28 found=`which Xorg | grep "no Xorg"`
    29 if test ! -z "$found"; then
    30     if test -f "/usr/X11/bin/Xorg"; then
    31         xorgbin=/usr/X11/bin/Xorg
    32     else
    33         exit 1
    34     fi
     24# This script can also be triggered by a connection over SSH, which is not what
     25# we had in mind, so we do not start VBoxClient in that case.  We do not use
     26# "exit" here as this script is "source"d, not executed.
     27if test -z "${SSH_CONNECTION}"; then
     28  /usr/bin/VBoxClient --clipboard
     29  /usr/bin/VBoxClient --checkhostversion
     30  /usr/bin/VBoxClient --display
     31  /usr/bin/VBoxClient --seamless
     32  /usr/bin/VBoxClient --draganddrop
    3533fi
    36 xout=`$xorgbin -version 2>&1`
    37 if echo "$xout" | grep "1\.4\.99\.90[12345]" > /dev/null
    38 then
    39     no_display=1
    40 fi
    41 
    42 /usr/bin/VBoxClient --clipboard
    43 /usr/bin/VBoxClient --checkhostversion
    44 test -z "$no_display" &&
    45     /usr/bin/VBoxClient --display
    46 test -z "$no_display" &&
    47     /usr/bin/VBoxClient --seamless
    48 test -z "$no_display" &&
    49     /usr/bin/VBoxClient --draganddrop
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette