Added PW_STOP_PORTWINE_RESTART
This commit is contained in:
@ -1266,7 +1266,11 @@ stop_portwine () {
|
||||
pw_auto_create_shortcut
|
||||
add_in_stop_portwine
|
||||
unset SKIP_CHECK_UPDATES
|
||||
exit 0
|
||||
if [[ "$PW_STOP_PORTWINE_RESTART" == 1 ]] ; then
|
||||
restart_pp
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
export -f stop_portwine
|
||||
|
||||
@ -2199,6 +2203,7 @@ pw_create_unique_exe () {
|
||||
}
|
||||
|
||||
start_portwine () {
|
||||
pw_skip_update_new
|
||||
if [[ "${PW_LOCALE_SELECT}" != "disabled" ]] && [[ -n "${PW_LOCALE_SELECT}" ]] ; then
|
||||
export LC_ALL="${PW_LOCALE_SELECT}"
|
||||
if [[ "${PW_USE_RUNTIME}" == "1" ]] && [[ "${HOST_LC_ALL}" != "${LC_ALL}" ]] ; then
|
||||
@ -3495,7 +3500,6 @@ pw_yad_form_vulkan () {
|
||||
}
|
||||
|
||||
portwine_launch () {
|
||||
pw_skip_update_new
|
||||
start_portwine
|
||||
unset PW_VD_TMP
|
||||
if [[ "${PW_VIRTUAL_DESKTOP}" == "1" ]] ; then
|
||||
@ -3526,11 +3530,15 @@ pw_winecfg () {
|
||||
start_portwine
|
||||
export GST_PLUGIN_SYSTEM_PATH_1_0=""
|
||||
pw_run winecfg
|
||||
export PW_STOP_PORTWINE_RESTART=1
|
||||
stop_portwine
|
||||
}
|
||||
|
||||
pw_winefile () {
|
||||
start_portwine
|
||||
pw_run winefile
|
||||
export PW_STOP_PORTWINE_RESTART=1
|
||||
stop_portwine
|
||||
}
|
||||
|
||||
pw_winecmd () {
|
||||
@ -3538,6 +3546,7 @@ pw_winecmd () {
|
||||
start_portwine
|
||||
cd "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c" || fatal
|
||||
pw_run cmd
|
||||
export PW_STOP_PORTWINE_RESTART=1
|
||||
stop_portwine
|
||||
}
|
||||
|
||||
@ -3545,6 +3554,8 @@ pw_winereg () {
|
||||
start_portwine
|
||||
export GST_PLUGIN_SYSTEM_PATH_1_0=""
|
||||
pw_run regedit
|
||||
export PW_STOP_PORTWINE_RESTART=1
|
||||
stop_portwine
|
||||
}
|
||||
|
||||
pw_start_cont_xterm () {
|
||||
@ -3558,6 +3569,7 @@ pw_start_cont_xterm () {
|
||||
${PW_GAMEMODERUN_SLR} \
|
||||
${PW_MANGOHUD_SLR} \
|
||||
${PW_TERM} bash
|
||||
restart_pp
|
||||
}
|
||||
|
||||
# GUI INFO
|
||||
|
Reference in New Issue
Block a user