Commit fb8d1098 authored by Vladislav's avatar Vladislav

New fixes after cumulative update

parent 82e7f1cb
...@@ -1352,9 +1352,9 @@ get_and_set_reg_file () { ...@@ -1352,9 +1352,9 @@ get_and_set_reg_file () {
esac esac
name_block=${name_block//\\/\\\\\\\\} name_block=${name_block//\\/\\\\\\\\}
if [[ -n $name_for_new_block ]] ; then if [[ -n $name_for_new_block ]] ; then
find_block=$(grep -n "$name_block" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/$name_for_new_block.reg") find_block=$(grep -n "\[$name_block\]" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/$name_for_new_block.reg")
else else
find_block=$(grep -n "$name_block" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/"*.reg) find_block=$(grep -n "\[$name_block\]" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/"*.reg)
fi fi
if [[ -n $find_block ]] ; then if [[ -n $find_block ]] ; then
if [[ -n $name_for_new_block ]] ; then if [[ -n $name_for_new_block ]] ; then
...@@ -1378,7 +1378,7 @@ get_and_set_reg_file () { ...@@ -1378,7 +1378,7 @@ get_and_set_reg_file () {
break break
fi fi
[[ -z $line_reg ]] && break [[ -z $line_reg ]] && break
done < <(sed -n "$find_line"',$p' "$find_file") done <<< "$(sed -n "$find_line"',$p' "$find_file")"
fi fi
if [[ $name_add_or_del == --add ]] ; then if [[ $name_add_or_del == --add ]] ; then
if [[ -z $find_block ]] ; then if [[ -z $find_block ]] ; then
...@@ -5796,6 +5796,7 @@ gui_userconf () { ...@@ -5796,6 +5796,7 @@ gui_userconf () {
if command -v gsettings &>/dev/null ; then if command -v gsettings &>/dev/null ; then
YAD_GTK_THEME=$(gsettings get org.gnome.desktop.interface gtk-theme) YAD_GTK_THEME=$(gsettings get org.gnome.desktop.interface gtk-theme)
[[ $YAD_GTK_THEME == \'Adwaita\' ]] && unset YAD_GTK_THEME
[[ -n $YAD_GTK_THEME ]] && YAD_GTK_THEME="${YAD_GTK_THEME//\'/}!" [[ -n $YAD_GTK_THEME ]] && YAD_GTK_THEME="${YAD_GTK_THEME//\'/}!"
fi fi
if [[ -z $GTK_THEME ]] ; then GTK_THEME=${translations[default]} if [[ -z $GTK_THEME ]] ; then GTK_THEME=${translations[default]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment