Commit c2944a78 authored by Mikhail Tergoev's avatar Mikhail Tergoev

update support msi and reg

parent 2a6347df
...@@ -143,6 +143,7 @@ Htylol ...@@ -143,6 +143,7 @@ Htylol
Boria138 Boria138
Vano Majukin Vano Majukin
Eljeyna Eljeyna
chal55rus
SDR SDR
Mels Mels
Cefeiko Cefeiko
...@@ -150,7 +151,6 @@ Dezert1r ...@@ -150,7 +151,6 @@ Dezert1r
Taz_mania Taz_mania
Anton_Famillianov Anton_Famillianov
RidBowt RidBowt
chal55rus
UserDiscord UserDiscord
Survolog Survolog
gavr gavr
......
...@@ -3071,7 +3071,6 @@ pw_yad_form_vulkan () { ...@@ -3071,7 +3071,6 @@ pw_yad_form_vulkan () {
portwine_launch () { portwine_launch () {
start_portwine start_portwine
export GST_PLUGIN_SYSTEM_PATH_1_0=""
if [[ "${PW_VIRTUAL_DESKTOP}" == "1" ]] ; then if [[ "${PW_VIRTUAL_DESKTOP}" == "1" ]] ; then
pw_run explorer "/desktop=PortProton,${PW_SCREEN_RESOLUTION}" ${WINE_WIN_START} "$portwine_exe" pw_run explorer "/desktop=PortProton,${PW_SCREEN_RESOLUTION}" ${WINE_WIN_START} "$portwine_exe"
fi fi
......
...@@ -36,13 +36,20 @@ if [[ "$1" == *.ppack ]] ; then ...@@ -36,13 +36,20 @@ if [[ "$1" == *.ppack ]] ; then
portwine_exe="$1" portwine_exe="$1"
elif [[ -f "$1" ]] ; then elif [[ -f "$1" ]] ; then
portwine_exe="$(realpath "$1")" portwine_exe="$(realpath "$1")"
elif [[ -f "$OLDPWD/$1" ]] && ([[ "$1" == *.exe ]] || [[ "$1" == *.bat ]]); then elif [[ -f "$OLDPWD/$1" ]] \
&& [[ "$1" == *.exe || "$1" == *.bat || "$1" == *.reg || "$1" == *.msi ]]
then
portwine_exe="$(realpath "$OLDPWD/$1")" portwine_exe="$(realpath "$OLDPWD/$1")"
elif [[ "$1" == "--debug" ]] && [[ -f "$2" ]] ; then elif [[ "$1" == "--debug" ]] \
&& [[ -f "$2" ]]
then
portwine_exe="$(realpath "$2")" portwine_exe="$(realpath "$2")"
elif [[ "$1" == "--debug" ]] && [[ -f "$OLDPWD/$2" ]] && ([[ "$2" == *.exe ]] || [[ "$2" == *.bat ]]); then elif [[ "$1" == "--debug" ]] \
&& [[ -f "$OLDPWD/$2" ]] \
&& [[ "$2" == *.exe || "$2" == *.bat || "$2" == *.reg || "$2" == *.msi ]]
then
portwine_exe="$(realpath "$OLDPWD/$2")" portwine_exe="$(realpath "$OLDPWD/$2")"
elif [[ "$1" == *.exe ]] || [[ "$1" == *.bat ]]; then elif [[ "$1" == *.exe || "$1" == *.bat || "$1" == *.msi ]]; then
portwine_exe="$1" portwine_exe="$1"
MISSING_DESKTOP_FILE=1 MISSING_DESKTOP_FILE=1
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