Commit 8defcff2 authored by Vladislav's avatar Vladislav

Update restart_pp function

parent 4d8841fc
...@@ -625,16 +625,13 @@ combobox_fix () { ...@@ -625,16 +625,13 @@ combobox_fix () {
restart_pp () { restart_pp () {
if [[ -n "$1" ]] ; then if [[ -n "$1" ]] ; then
if [[ "$1" == "--userconf" ]] ; then if [[ "$1" == "--userconf" ]] ; then
/usr/bin/env bash -c "${pw_full_command_line[0]} --gui_userconf" & export RESTART_PP_USED="userconf"
exit 0
elif [[ "$1" == "--edit_db" ]] ; then elif [[ "$1" == "--edit_db" ]] ; then
/usr/bin/env bash -c "${pw_full_command_line[0]} --gui_edit_db" & export RESTART_PP_USED="edit_db"
exit 0 fi
fi fi
else
/usr/bin/env bash -c ${pw_full_command_line[@]} & /usr/bin/env bash -c ${pw_full_command_line[@]} &
exit 0 exit 0
fi
} }
pw_clear_pfx () { pw_clear_pfx () {
......
...@@ -566,9 +566,11 @@ fi ...@@ -566,9 +566,11 @@ fi
if [[ -f "${portwine_exe}" ]] ; then if [[ -f "${portwine_exe}" ]] ; then
unset TAB_MAIN_MENU unset TAB_MAIN_MENU
if [[ "$1" == "--gui_edit_db" ]] ; then if [[ "$RESTART_PP_USED" == "edit_db" ]] ; then
unset RESTART_PP_USED
gui_edit_db gui_edit_db
elif [[ "$1" == "--gui_userconf" ]] ; then elif [[ "$RESTART_PP_USED" == "userconf" ]] ; then
unset RESTART_PP_USED
gui_userconf gui_userconf
fi fi
if [[ "${PW_GUI_DISABLED_CS}" != 1 ]] ; then if [[ "${PW_GUI_DISABLED_CS}" != 1 ]] ; then
...@@ -681,7 +683,8 @@ else ...@@ -681,7 +683,8 @@ else
then export PW_GUI_SORT_TABS=(1 2 3 4 5) then export PW_GUI_SORT_TABS=(1 2 3 4 5)
else export PW_GUI_SORT_TABS=(2 3 4 5 1) else export PW_GUI_SORT_TABS=(2 3 4 5 1)
fi fi
if [[ "$1" == "--gui_userconf" ]] ; then if [[ "$RESTART_PP_USED" == "userconf" ]] ; then
unset RESTART_PP_USED
gui_userconf gui_userconf
fi fi
......
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