DoomRunner icon indicating copy to clipboard operation
DoomRunner copied to clipboard

How do I use the Flatpak version of GZDoom with this?

Open Espio419 opened this issue 2 years ago • 14 comments

Espio419 avatar Nov 01 '22 23:11 Espio419

Honestly, i don't know, i never used it. I tried installing gzdoom from snap, but it didn't work at all and was crashing. How do you start gzdoom when you don't have any launcher? Do you know how it works so that it finds its shared libraries?

Youda008 avatar Nov 05 '22 13:11 Youda008

@Espio419 you could probably do this:

make a "gzdoom" script in ~/.local/bin/ with the contents:

flatpak run org.zdoom.GZDoom $@

(make sure ~/.local/bin is in your path)

pizzadude avatar Nov 14 '22 06:11 pizzadude

@Espio419 you could probably do this:

make a "gzdoom" script in ~/.local/bin/ with the contents:

flatpak run org.zdoom.GZDoom $@

(make sure ~/.local/bin is in your path)

No luck. Runs fine when executing out of the mod loader.

Espio419 avatar Nov 14 '22 17:11 Espio419

Make sure the script is executable (i.e. chmod +x gzdoom), and put double quotes around $@.

poperigby avatar Mar 08 '23 17:03 poperigby

No luck. Runs fine when executing out of the mod loader.

@Espio419 works for me:

$ mkdir ~/bin
$ echo -e '#!/bin/bash\nflatpak run org.zdoom.GZDoom $@' > ~/bin/gzdoom
$ chmod ugo+x ~/bin/gzdoom

Then use the "Initial setup" menu to set ~/bin/gzdoom as engine. Remember that, by design, the flatpak app can access only files under ~/.var/app/org.zdoom.GZDoom/.config/gzdoom folder. Otherwise, you have to extends app permissions.

mbugni avatar Jun 02 '23 18:06 mbugni

Can you please give me an example of shell command that you use to start the Flatpack version of GZDoom with additional parameters (WADs, ...) ?

Youda008 avatar Jun 22 '23 13:06 Youda008

Can you please give me an example of shell command that you use to start the Flatpack version of GZDoom with additional parameters (WADs, ...) ?

The above script do the job, basically the command is:

$ flatpak run org.zdoom.GZDoom ...<any parameter>...

mbugni avatar Jun 22 '23 20:06 mbugni

I'm having a similar issue. I'm using the flatpak version of Doom Runner with the flatpak version of GZDoom, and it's detecting that engine fine, but when I install the flatpak version of Crispy Doom it isn't detecting it.

thecnoNSMB avatar Sep 26 '23 22:09 thecnoNSMB

Please take a look at this README for using other sandboxed engines.

mbugni avatar Sep 26 '23 22:09 mbugni

Those instructions aren't working for me. Is the flatpak version of Doom Runner supposed to automatically detect the existence of the flatpak version of Crispy Doom, like it did with the flatpak version of GZDoom?

edit: The error message is Portal call failed: Failed to start command: Failed to change to directory “/run/flatpak/doc/888b2a81” (No such file or directory)

thecnoNSMB avatar Sep 26 '23 22:09 thecnoNSMB

DoomRunner didn't automatically detect GZDoom, it was included with the DoomRunner Flatpak. Crispy Doom would need to be added as well.

poperigby avatar Sep 26 '23 23:09 poperigby

Those instructions aren't working for me.

Please, provide more details about your environment:

  1. did you grant permissions to the engine?
  2. did you create a launcher script for the engine?
  3. did you add the sandboxed engine properly?

Is the flatpak version of Doom Runner supposed to automatically detect the existence of the flatpak version of Crispy Doom, like it did with the flatpak version of GZDoom?

No, as @poperigby pointed, the GZDoom engine is embedded within the app. Any other engine (even Flathub GZDoom) must be properly configured and it's not auto-detected. From README:

The app includes the GZDoom engine to run WADs and files.

mbugni avatar Sep 27 '23 07:09 mbugni

Oh, my mistake. In that case, I think for my use case I'll just continue to use GZDoom for now, and possibly build it from source later so I don't have to use any of the Flatpak ecosystem in the first place. Thanks for the help.

thecnoNSMB avatar Sep 27 '23 11:09 thecnoNSMB

@Espio419 the engine "executable" is /var/lib/flatpak/exports/bin/org.zdoom.GZDoom , just make sure the flatpak has access to the filesystem where the wads and the pwads are via running "flatpak override ...etc" Also note that the soundfont gets overridden each time with gzdoom.sf2, so you're gonna have to use +fluid_patchset in the additional arguments in DoomRunner if you want to use a custom soundfont.

charlesthobe avatar Feb 17 '24 12:02 charlesthobe