Open TylerJaacks opened 1 year ago
None of the flatpak DOSBox versions can be executed anymore. They all fail with:
/usr/bin/flatpak: /home/deck/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_64/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by /usr/lib/libappstream-glib.so.8)
This is likely related to https://github.com/ValveSoftware/steam-runtime/issues/551
I've tried these:
cmd = /usr/bin/flatpak run --branch=stable --arch=x86_64 --filesystem=%install_dir% --command=dosbox com.dosbox.DOSBox
cmd = /usr/bin/flatpak run --branch=stable --arch=x86_64 --filesystem=%install_dir% --command=dosbox-x com.dosbox_x.DOSBox-X
cmd = /usr/bin/flatpak run --branch=stable --arch=x86_64 --filesystem=%install_dir% --command=dosbox io.github.dosbox-staging
And none of them work.
A desirable and easy-to-install solution to Steam Deck users would be to release BoxTron as a flatpak that handles all of these issues. But, not know how steam runtimes, boxtron, or flatpak works... This is more a wish than a real solution.
I've managed to launch the game (on both desktop mode and game mode) using the following line in ~/.config/boxtron.conf
:
cmd = /home/deck/dosbox.sh
And then I created a shell script at that location, with the following contents:
#!/bin/sh
echo "LD_LIBRARY_PATH was: $LD_LIBRARY_PATH"
# Choose one out of these three:
# Vanilla DOSBox. Seems to work.
#export LD_LIBRARY_PATH="/var/lib/flatpak/app/com.dosbox.DOSBox/current/active/files/lib:$LD_LIBRARY_PATH"
#exec /var/lib/flatpak/app/com.dosbox.DOSBox/current/active/files/bin/dosbox "$@"
# DOSBox-staging. For some reason, it refuses keyboard input.
#export LD_LIBRARY_PATH="/var/lib/flatpak/app/io.github.dosbox-staging/current/active/files/lib:$LD_LIBRARY_PATH"
#exec /var/lib/flatpak/app/io.github.dosbox-staging/current/active/files/bin/dosbox "$@"
# DOSBox-X. Also seems to work fine.
export LD_LIBRARY_PATH="/var/lib/flatpak/app/com.dosbox_x.DOSBox-X/current/active/files/lib:$LD_LIBRARY_PATH"
exec /var/lib/flatpak/app/com.dosbox_x.DOSBox-X/current/active/files/bin/dosbox-x "$@"
Please note that I'm abusing flatpak. I'm launching the binary directly, bypassing flatpak, and explicitly adding its own lib
directory to $LD_LIBRARY_PATH
. This may or may not be a good idea, I can't tell. Also, I couldn't see any difference between prepending or appending the directory to the path.
@denilsonsa this fixed it for me. I agree that it is probably not good to bootstrap Flatpaks manually, but it works. I think there needs to be an issue for creating a flatpak version.
I can't manage to get Boxtron to open DOSBox-X and run games.
Here is my ~/.config/boxtron.conf