summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc
blob: 0c45ee59927615e436b8300d8e123a72c729df34 (plain) (blame)
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
#####################################################################
# Include: Declaration of vmware run-virt-include default variables #
#####################################################################

set_vmware_include_variables() {
	[ "$mem" -gt 3800 -a "$(uname -m)" != "x86_64" ] && mem=3800
	
	# temporary disk space for logs, etc...
	redodir="/tmp/virt/vmware/${USER}.$$"
	
	# dir for configs and vmem file
	confdir="/tmp/virt/vmware/${USER}.$$"
	
	# configfile
	conffile="${confdir}/run-vmware.conf"
	
	# diskfile
	diskfile="${vmpath}"
	
	# users vmware config folder
	[ -z "${HOME}" ] && HOME=$(getent passwd "$(whoami)" | awk -F ':' '{print $6}')
	vmhome="${HOME}/.vmware"
	
	# get several version infos for vmware/player
	source /opt/openslx/vmchooser/vmware/vmware.conf
	
	# VMware start options
	# "-X": start in fullscreen
	vmopt="-X"
}