Fix missing --no-sandbox option for Ubuntu installation (#1404)

* shadps4 location

* fix bigpemu

* fix paths

* Fix missing --no-sandbox option for Ubuntu installation

---------

Co-authored-by: Dragoon Dorise <rodrigosedano@me.com>
This commit is contained in:
themoses 2025-02-27 09:38:25 +01:00 committed by GitHub
parent d45c2cee80
commit 32cda41c8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 6 deletions

View File

@ -52,7 +52,6 @@ BigPEmu_init(){
setMSG "Initializing $BigPEmu_emuName settings."
rsync -avhp "$emudeckBackend/configs/bigpemu/" "$BigPEmu_appData" --backup --suffix=.bak
sed -E -i "s|/run/media/mmcblk0p1/Emulation|$emulationPath|g" "$BigPEmu_BigPEmuSettings"
BigPEmu_setEmulationFolder
BigPEmu_setupSaves
BigPEmu_flushEmulatorLauncher
@ -70,7 +69,6 @@ BigPEmu_update(){
setMSG "Updating $BigPEmu_emuName settings."
rsync -avhp "$emudeckBackend/configs/bigpemu/" "$BigPEmu_appData" --ignore-existing
sed -E -i "s|/run/media/mmcblk0p1/Emulation|$emulationPath|g" "$BigPEmu_BigPEmuSettings"
BigPEmu_setEmulationFolder
BigPEmu_setupSaves
BigPEmu_flushEmulatorLauncher

View File

@ -17,6 +17,7 @@ ShadPS4_cleanup(){
# TODO: Install Flatpak from https://github.com/shadps4-emu/shadPS4-flatpak
ShadPS4_install(){
echo "Begin ShadPS4 Install"
local showProgress=$1
@ -30,6 +31,7 @@ ShadPS4_install(){
echo "Error installing ShadPS4"
return 1
fi
}
ShadPS4_init(){

View File

@ -1,7 +1,13 @@
#!/bin/bash
. "$HOME/.config/EmuDeck/backend/functions/all.sh"
if [ -e "${toolsPath}/Steam-ROM-Manager.AppImage" ]; then
sandbox=""
if $(grep -q Ubuntu /etc/os-release) ; then
sandbox="--no-sandbox"
fi
if [ -e "${toolsPath}/Steam-ROM-Manager.AppImage" ]; then
SRM_toolPath="${toolsPath}/Steam-ROM-Manager.AppImage"
elif [ -e "${toolsPath}/Steam ROM Manager.AppImage" ]; then
SRM_toolPath="${toolsPath}/Steam ROM Manager.AppImage"
@ -15,13 +21,12 @@ fi
if grep -q '"autoKillSteam": true' "$HOME/.config/steam-rom-manager/userData/userSettings.json"; then
echo "Steam ROM Manager path: $SRM_toolPath"
echo "autoKillSteam set to true in Steam ROM Manager. Skipping zenity prompt."
"$SRM_toolPath"
$($SRM_toolPath $sandbox)
else
echo "Steam ROM Manager path: $SRM_toolPath"
echo "autoKillSteam set to false in Steam ROM Manager. Loading zenity prompt."
zenity --question \
--width 450 \
--title "Close Steam/Steam Input?" \
--text "Exit Steam to launch Steam ROM Manager? Desktop controls will revert to Lizard Mode until Steam is reopened. Use L2/R2 to click and the trackpad to move the cursor." && (kill -15 $(pidof steam) & "$SRM_toolPath")
--text "Exit Steam to launch Steam ROM Manager? Desktop controls will revert to Lizard Mode until Steam is reopened. Use L2/R2 to click and the trackpad to move the cursor." && (kill -15 $(pidof steam) & $($SRM_toolPath $sandbox))
fi