KASM-4038 fix yaml processor to now pass a bool value for hw3d

This commit is contained in:
ryan.kuba 2023-02-16 18:48:42 -08:00
parent 22ec1c6dbd
commit cdf21ea6fd
2 changed files with 19 additions and 1 deletions

View File

@ -5,6 +5,9 @@ desktop:
height: 768 height: 768
allow_resize: true allow_resize: true
pixel_depth: 24 pixel_depth: 24
gpu:
hw3d: false
drinode: /dev/dri/renderD128
network: network:
protocol: http protocol: http

View File

@ -2249,7 +2249,22 @@ sub DefineConfigToCLIConversion {
name => "desktop.gpu.hw3d", name => "desktop.gpu.hw3d",
type => KasmVNC::ConfigKey::BOOLEAN type => KasmVNC::ConfigKey::BOOLEAN
}) })
] ],
toStringSub => sub {
$self = shift;
my $value = $self->configValue();
switch($value) {
case 'true' {
$valuesStr = '-hw3d ';
}
case 'false' {
$valuesStr = ' ';
}
}
return $valuesStr;
}
}), }),
KasmVNC::CliOption->new({ KasmVNC::CliOption->new({
name => 'drinode', name => 'drinode',