Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Espio419 opened this issue Nov 1, 2022 · 14 comments
Open

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

Espio419 opened this issue Nov 1, 2022 · 14 comments

Comments

@Espio419
Copy link

Espio419 commented Nov 1, 2022

No description provided.

@Youda008
Copy link
Owner

Youda008 commented Nov 5, 2022

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?

@pizzadude
Copy link

pizzadude commented Nov 14, 2022

@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)

@Espio419
Copy link
Author

@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.

@poperigby
Copy link
Contributor

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

@mbugni
Copy link
Contributor

mbugni commented Jun 2, 2023

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.

@Youda008
Copy link
Owner

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

@mbugni
Copy link
Contributor

mbugni commented Jun 22, 2023

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>...

@thecnoNSMB
Copy link

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.

@mbugni
Copy link
Contributor

mbugni commented Sep 26, 2023

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

@thecnoNSMB
Copy link

thecnoNSMB commented Sep 26, 2023

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)

@poperigby
Copy link
Contributor

poperigby commented Sep 26, 2023

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

@mbugni
Copy link
Contributor

mbugni commented Sep 27, 2023

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.

@thecnoNSMB
Copy link

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.

@charlesthobe
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants