VirtualBox

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

Last change on this file since 41244 was 38194, checked in by vboxsync, 13 years ago

Additions/linux|x11/*kmk: some cleanups.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/sh
2## @file
3# Start the Guest Additions X11 Client
4#
5
6#
7# Copyright (C) 2007-2011 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# It can happen that pidfiles from a sudo session can land in the user's
19# home directory and prevent new ones from being created. This is not really
20# our fault, but the user may not quite appreciate that...
21for i in $HOME/.vboxclient-*.pid; do
22 if test -r $i && ! ps -e | grep `cat $i`; then
23 rm -f $i
24 fi
25done
26
27# Check whether the display we are running on running a known buggy version
28# of X.Org which might crash when we resize.
29no_display=
30xorgbin=Xorg
31found=`which Xorg | grep "no Xorg"`
32if test ! -z "$found"; then
33 if test -f "/usr/X11/bin/Xorg"; then
34 xorgbin=/usr/X11/bin/Xorg
35 else
36 exit 1
37 fi
38fi
39xout=`$xorgbin -version 2>&1`
40if echo "$xout" | grep "1\.4\.99\.90[12345]" > /dev/null
41then
42 no_display=1
43fi
44
45/usr/bin/VBoxClient --clipboard
46/usr/bin/VBoxClient --checkhostversion
47test -z "$no_display" &&
48 /usr/bin/VBoxClient --display
49test -z "$no_display" &&
50 /usr/bin/VBoxClient --seamless
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