VirtualBox

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

Last change on this file since 35581 was 32394, checked in by vboxsync, 14 years ago

more branding and header fixes

  • Property svn:eol-style set to LF
File size: 1.5 KB
Line 
1#!/bin/sh
2#
3# Start the Guest Additions X11 Client
4#
5# Copyright (C) 2007-2010 Oracle Corporation
6#
7# This file is part of VirtualBox Open Source Edition (OSE), as
8# available from http://www.virtualbox.org. This file is free software;
9# you can redistribute it and/or modify it under the terms of the GNU
10# General Public License (GPL) as published by the Free Software
11# Foundation, in version 2 as it comes in the "COPYING" file of the
12# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14#
15
16# It can happen that pidfiles from a sudo session can land in the user's
17# home directory and prevent new ones from being created. This is not really
18# our fault, but the user may not quite appreciate that...
19for i in $HOME/.vboxclient-*.pid; do
20 if test -r $i && ! ps -e | grep `cat $i`; then
21 rm -f $i
22 fi
23done
24
25# Check whether the display we are running on running a known buggy version
26# of X.Org which might crash when we resize.
27no_display=
28xorgbin=Xorg
29found=`which Xorg | grep "no Xorg"`
30if test ! -z "$found"; then
31 if test -f "/usr/X11/bin/Xorg"; then
32 xorgbin=/usr/X11/bin/Xorg
33 else
34 exit 1
35 fi
36fi
37xout=`$xorgbin -version 2>&1`
38if echo "$xout" | grep "1\.4\.99\.90[12345]" > /dev/null
39then
40 no_display=1
41fi
42
43/usr/bin/VBoxClient --clipboard
44/usr/bin/VBoxClient --checkhostversion
45test -z "$no_display" &&
46 /usr/bin/VBoxClient --display
47test -z "$no_display" &&
48 /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