punesemu/puNES

Can't load rom via command line with flatpak

Closed this issue · 12 comments

Hello together,

i installed the flatpak version of puNES in version 0.110.
When i start the emulator and choose a rom via the menu, everything runs fine, but when i try to start the rom via command line with
flatpak run io.github.punesemu.puNES "/home/username/Documents/Emulation/NES/Europe/Battletoads (E).nes"

With other emulators the path to the rom works just fine.
Do i have to do something special?

thanks in advance

Sorry if I'm only replying now but it's been a difficult few months, only from today I have the chance to get back to work on the emulator. Thanks for the report, I'll do some tests and keep you updated.

Ok, I figured out why it doesn't work from the command line. Being a sandbox environment, Flatpak does not allow access to system directories unless you specify it in the command line:
flatpak run --file-forwarding io.github.punesemu.puNES @@ "/home/username/Documents/Emulation/NES/Europe/Battletoads (E).nes" @@

thanks for the investigation. i think there has to be another way because other emulators from flathub work just fine without additional parameters.

But do the other emulators (flatpak version) work by double clicking on the rom icon or using the command line?

they work in both ways

As for the double click, I understood what it could depend on (just edit the .desktop file) but from the command line I don't understand how it can work without "--file-forwarding". Can you tell me an emulator? And can you also write me the command line you use to start it specifying the rom?

every emulator i tried, e.g. duckstation, pcsx2, blastem, mednafen, works the same.
flatpak run flatpakid "pathToTheRom"

Thanks so much, I'll try to figure out why.

Ok I understood why it didn't work. In these days I will update the flatpack package with the necessary changes. Thanks so much for the report.

If you want test the new package look here : flathub/io.github.punesemu.puNES#4

this sounds great. im looking forward to it. unfortunatly im not at home for several days and can`t test it.
thanks for your effort

it works. thank you :)