Commit d0d1e491 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Integration PortProton in DE

parent a1efb11f
#!/bin/bash
# Author: PortWINE-Linux.ru
. "$(dirname $(readlink -f "$0"))/runlib"
if [ -f "$1" ]; then
portwine_exe="$1"
portwine_exe_path="$(dirname $(readlink -f "$1"))"
START_PORTWINE
cd "${portwine_exe_path}"
if [ ! -z ${optirun_on} ]; then
${optirun_on} "${port_on_run}" "run" "$portwine_exe"
else
"${port_on_run}" "run" "$portwine_exe"
fi
STOP_PORTWINE
else
sh "${PORT_SCRIPTS_PATH}/winefile"
fi
......@@ -22,6 +22,19 @@ if [ ! -z "${gamename}" ]; then
echo "Icon="${PORT_WINE_PATH}/data/img/w.png"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop"
cp -f "${PORT_WINE_PATH}/${name_desktop}.desktop" /home/${USER}/.local/share/applications/
else
name_desktop="PortProton"
echo "[Desktop Entry]" > "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Name=${name_desktop}" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Exec=env "${PORT_SCRIPTS_PATH}/portproton.sh %U"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Type=Application" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Categories=Game" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "StartupNotify=true" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "MimeType=application/x-ms-dos-executable;application/x-wine-extension-msp;" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Path="${PORT_SCRIPTS_PATH}/"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Icon="${PORT_WINE_PATH}/data/img/w.png"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop"
cp -f "${PORT_WINE_PATH}/${name_desktop}.desktop" /home/${USER}/.local/share/applications/
fi
name_desktop="readme"
......
......@@ -20,11 +20,11 @@ export PW_NO_VR=1
export PW_FILELOCK=1
export PW_DXVK_ASYNC=0
export PW_USE_SECCOMP=0
export PW_NO_WINEMFPLAY=0
export PW_NO_WINEMFPLAY=1
export PW_NVAPI_DISABLE=1
export PW_NO_WRITE_WATCH=1
export PW_WINEDBG_DISABLE=1
export PW_PULSE_LOWLATENCY=1
export PW_PULSE_LOWLATENCY=0
export PW_FORCE_LARGE_ADDRESS_AWARE=1
########################################################################
ADD_IN_START_PORTWINE ()
......
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