-
Notifications
You must be signed in to change notification settings - Fork 2
/
vbox_system_qt
32 lines (27 loc) · 961 Bytes
/
vbox_system_qt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/bash
#----------------------------------------------------------------------
# Description: replace VirtualBox own Qt libraries with system ones
# Author: Artem S. Tashkinov
# Created at: Thu Apr 16 03:44:38 2020
# Computer: zen
# System: Linux 5.6.3-az2 on x86_64
#
# Copyright (c) 2020 Artem S. Tashkinov All rights reserved.
#
#----------------------------------------------------------------------
test "$UID" -ne "0" && echo "Must be run under root" && exit 0
cd /usr/lib/virtualbox || exit 1
mkdir -p qt || exit 2
for i in libQt*; do
echo -n "Processing $i ... "
test -L "$i" && echo "already processed" && continue
mv -i "$i" qt || exit 3
base=`echo "$i" | sed 's/VBox//'`
ln -s "/usr/lib64/$base" "/usr/lib/virtualbox/$i" || exit 4
echo " OK"
done
test -f qt.conf && mv -i qt.conf qt
test -d plugins && mv -i plugins qt
echo
echo "Finished"
echo "The original VirtualBox Qt libraries are at /usr/lib/virtualbox/qt"