diff options
author | Jonathan Bauer | 2021-07-15 16:29:59 +0200 |
---|---|---|
committer | Jonathan Bauer | 2021-07-15 16:29:59 +0200 |
commit | 419b2b69c4b2fa169c90aa05e5c03a172d6443aa (patch) | |
tree | a114e28ac00c18c6eb2f2a0d8ef9c376d5fc9b28 /core/modules/vmware-common | |
parent | Install mode: Check required directory existance too (diff) | |
download | mltk-419b2b69c4b2fa169c90aa05e5c03a172d6443aa.tar.gz mltk-419b2b69c4b2fa169c90aa05e5c03a172d6443aa.tar.xz mltk-419b2b69c4b2fa169c90aa05e5c03a172d6443aa.zip |
[vmware-common] fix bwidm crashes with local caching
Diffstat (limited to 'core/modules/vmware-common')
-rw-r--r-- | core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc index 01abdfd0..b968c378 100644 --- a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc +++ b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc @@ -17,11 +17,17 @@ vmw_cap_hw_version() { [ "$1" -lt "$maxhardwareversion" ] && maxhardwareversion="$1" } +# The '@' included in bwIDM usernames leads to player crashes when +# local VM caching is active. It seems like the problems lies with the +# folder name where vmware puts its runtime files. +# As a workaround we just replace '@' with '-' for now. +declare -rg VM_WORK_DIR="/tmp/virt/vmware/${USER//@/-}.$$" + # Temporary disk space for logs, etc... -declare -rg VM_REDO_DIR="/tmp/virt/vmware/${USER}.$$" +declare -rg VM_REDO_DIR="$VM_WORK_DIR" # Dir for configs and vmem file -declare -rg VM_CONF_DIR="/tmp/virt/vmware/${USER}.$$" +declare -rg VM_CONF_DIR="$VM_WORK_DIR" # The VMX file of the starting VM declare -rg VM_RUN_FILE="${VM_CONF_DIR}/run-vmware.conf" |