added new tray

This commit is contained in:
Mikhail Tergoev
2024-07-26 13:07:48 +03:00
parent 701b809358
commit ed49998fb7
8 changed files with 118 additions and 7 deletions

View File

@ -992,8 +992,8 @@ stop_portwine () {
kill_portwine &&
try_remove_dir "${PW_WINELIB}/var"
find "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/" -maxdepth 1 -type f -name "*.tmp" -delete
if [[ ! -z "$(pgrep -a pw_tray)" ]] ; then
kill -s SIGUSR1 $(pgrep -a pw_tray) 2>/dev/null
if [[ ! -z "$(pgrep -a tray_pp)" ]] ; then
kill -s SIGUSR1 $(pgrep -a tray_pp) 2>/dev/null
fi
if [[ ! -z "$(pgrep -a yad_gui_pp)" ]] ; then
kill -s SIGUSR1 $(pgrep -a pw_yad_pp) 2>/dev/null
@ -1426,6 +1426,7 @@ create_shortcut_from_link () {
fi
fi
}
export -f create_shortcut_from_link
pw_auto_create_shortcut () {
[[ "${PW_CHECK_AUTOINSTALL}" == 1 ]] && return 0
@ -1488,6 +1489,7 @@ pw_auto_create_shortcut () {
fi
done
}
export -f pw_auto_create_shortcut
pw_init_db () {
if [[ -f "${portwine_exe}" ]] ; then
@ -3465,8 +3467,8 @@ open_changelog () {
export -f open_changelog
pw_tray_icon () {
if [[ ! -z "$(pgrep -a pw_tray)" ]] ; then
kill -s SIGUSR1 $(pgrep -a pw_tray) 2>/dev/null
if [[ ! -z "$(pgrep -a tray_pp)" ]] ; then
kill -s SIGUSR1 $(pgrep -a tray_pp) 2>/dev/null
fi
pw_tray_winefile () {
@ -3485,9 +3487,9 @@ pw_tray_icon () {
}
export -f tray_icon_click_exit
export PW_GUI_TRAY_PATH="${PW_GUI_THEMES_PATH}/tray"
cd ${PW_GUI_TRAY_PATH}
env LD_LIBRARY_PATH="${PW_GUI_TRAY_PATH}" "${PW_GUI_TRAY_PATH}/pw_tray" &
PW_GUI_TRAY_PATH="${PW_GUI_THEMES_PATH}/tray"
cd "${PW_GUI_TRAY_PATH}"
"${PW_GUI_TRAY_PATH}/tray_pp" &
cd -
return 0