VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/Installer/98vboxadd-xclient@ 50714

Last change on this file since 50714 was 50714, checked in by vboxsync, 11 years ago

Additions/x11/installer: change some code which did not work on Solaris 10 and simplify it.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/sh
2## @file
3# Start the Guest Additions X11 Client
4#
5
6#
7# Copyright (C) 2007-2012 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18# Sanity check: if non-writeable PID-files are present in the user home
19# directory VBoxClient will fail to start.
20for i in $HOME/.vboxclient-*.pid; do
21 test -w $i || rm -f $i
22done
23
24# Check whether the display we are running on running a known buggy version
25# of X.Org which might crash when we resize.
26no_display=
27xorgbin=Xorg
28found=`which Xorg | grep "no Xorg"`
29if 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
35fi
36xout=`$xorgbin -version 2>&1`
37if echo "$xout" | grep "1\.4\.99\.90[12345]" > /dev/null
38then
39 no_display=1
40fi
41
42/usr/bin/VBoxClient --clipboard
43/usr/bin/VBoxClient --checkhostversion
44test -z "$no_display" &&
45 /usr/bin/VBoxClient --display
46test -z "$no_display" &&
47 /usr/bin/VBoxClient --seamless
48test -z "$no_display" &&
49 /usr/bin/VBoxClient --draganddrop
Note: See TracBrowser for help on using the repository browser.

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