HGL
sensitive-blue

Running a script from Heroic to run com.dosbox_x.DOSBox-X fails with "flatpak: command not found"

Hi All! Firstly I love Heroic, its amazing and perfect for all my non Steam games, keep up the excellent work! I have a few DOS games I wanted to add to Heroic, each game can be launched using a .sh script and script simply calls the following command "flatpak run com.dosbox_x.DOSBox-X -conf "./dosbox.conf"" When I try to run the game from Heroic I can see in the log the error "flatpak: command not found" its like Heroic cannot see the DOSBox-X flatpak or use the flatpak command at all. Is this something with the sandboxing of flatpaks? Thanks for any help!
4 Replies
adverse-sapphire
adverse-sapphire•2y ago
flatpaks cannot call other flatpaks, you can add this talk in Flatseal org.freedesktop.Flatpak and have following command instead flatpak-spawn --host flatpak run com.dosbox_x.DOSBox-X -conf ./dosbox.conf be warned this is really unsafe command and allows to run things outside of the container, ideally you should use it to run other flatpaks only
sensitive-blue
sensitive-blueOP•2y ago
Hi Linguin, I have flatseal installed but I could not figure out how to get it to allow Heroic to run another flatpak. So basically the issue I am having is because of these restrictions, if its going to be unsafe then I am probably better off just adding the DOS game script to Steam and call it from there, this works because it seems Steam can run the DOSBox-X flatpak
adverse-sapphire
adverse-sapphire•2y ago
steam isn't flatpak app itself so it works
sensitive-blue
sensitive-blueOP•2y ago
OK, got it. Yeah I assume its a bit more part of the core of the OS functionality OK, thanks for clarifying. I have certainly learnt something the past day, I was really struggling with this last night until late trying to figure it out 🤣 Now I know I basically understand it correctly

Did you find this page helpful?