Official Flatpak support is available for DOSBox-Staging, a cross-platform x86/DOS emulation package.
This Flatpak is available on Flathub. After following the Flatpak setup guide, you can install it by entering the following command in a terminal:
flatpak install flathub io.github.dosbox-staging -y
Once the Flatpak is installed, you can run DOSBox-Staging using your desktop environment's
application launcher, or by running flatpak run io.github.dosbox-staging
in a terminal.
This Flatpak follows the latest stable DOSBox-Staging version. To update it, run the following command in a terminal:
flatpak update
/usr
) have special restrictions. For instance, to allow access
to /run/media
where USB devices are typically mounted, run the following command:
flatpak override --user --filesystem=/run/media io.github.dosbox-staging
/usr
.
If you want to use such soundfonts, copy them into your home directory and
specify the location in your DOSBox-Staging config file.flatpak override --user --env=SDL_AUDIODRIVER=dummy io.github.dosbox-staging
flatpak override --user --env=SDL_AUDIODRIVER=pipewire io.github.dosbox-staging
flatpak override --user --nosocket=fallback-x11 --nosocket=wayland --socket=x11 --env=SDL_VIDEODRIVER=x11 io.github.dosbox-staging
Please create an issue if you find any other limitations specific to flatpak that should be documented here.
Under the default Flatpak configuration, the DOSBox-Staging configuration files are
located in ~/.var/app/io.github.dosbox-staging/config/dosbox/
. To access it with a
graphical file manager, you'll have to make hidden folders visible.
The config file will not initially exist after installing DOSBox-Staging.
You can create one from the DOSBox-Staging command line by running config -wcd
.
Install Git, follow the flatpak-builder setup guide then enter the following commands in a terminal:
git clone --recursive https://github.com/flathub/io.github.dosbox-staging.git
cd io.github.dosbox-staging
flatpak install flathub org.freedesktop.Sdk//24.08 -y
flatpak-builder --force-clean --install --user -y build-dir io.github.dosbox-staging.yml
If all goes well, the Flatpak will be installed after building. You can then run it using your desktop environment's application launcher.
You can speed up incremental builds by installing ccache
and specifying --ccache
in the flatpak-builder command line (before build-dir
).