mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-10 07:58:52 +01:00
KASM-4038 fix yaml processor to now pass a bool value for hw3d
This commit is contained in:
parent
22ec1c6dbd
commit
cdf21ea6fd
@ -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
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user