fixed disable virtual desktop
This commit is contained in:
@@ -1231,13 +1231,16 @@ init_wineprefix () {
|
||||
|
||||
# включаем виртуальный рабочий стол при необходимости
|
||||
if [[ $WH_VIRTUAL_DESKTOP == "1" ]] ; then
|
||||
get_and_set_reg_file --add 'Software\Wine\Explorer' 'Desktop' 'REG_SZ' "Default" "user"
|
||||
WH_SCREEN_RESOLUTION="$(xrandr | sed -rn 's/^.*primary.* ([0-9]+x[0-9]+).*$/\1/p')"
|
||||
[[ $WH_SCREEN_RESOLUTION != *x* ]] && WH_SCREEN_RESOLUTION="1920x1080"
|
||||
get_and_set_reg_file --add 'Software\Wine\Explorer\Desktops' 'Default' 'REG_SZ' "$WH_SCREEN_RESOLUTION" "user"
|
||||
elif [[ $WH_VIRTUAL_DESKTOP == *x* ]] ; then
|
||||
get_and_set_reg_file --add 'Software\Wine\Explorer' 'Desktop' 'REG_SZ' "Default" "user"
|
||||
get_and_set_reg_file --add 'Software\Wine\Explorer\Desktops' 'Default' 'REG_SZ' "$WH_VIRTUAL_DESKTOP" "user"
|
||||
elif [[ $WH_VIRTUAL_DESKTOP == "0" ]] ; then
|
||||
get_and_set_reg_file --delete 'Software\Wine\Explorer\Desktops' 'Default'
|
||||
get_and_set_reg_file --delete 'Software\Wine\Explorer' 'Desktop'
|
||||
fi
|
||||
|
||||
# управляем декоратором для ПО по умолчанию
|
||||
|
||||
Reference in New Issue
Block a user