I am using macro scripts in Libreoffice Impress to launch games on my PC. I have set up some pages which have a game showing as an image, when clicked the interaction runs a macro.
My PC uses Kubuntu (one of the many flavours of Ubuntu), ie Linux.
I can link to most games from a script like this:
Sub Main
shell ("/home/john/Emulation/Eden.AppImage -f /home/john/Emulation/ROMS/Switch/AdvanceWars1plus2.nsp")
End Sub
…however I can’t get a Shell command to do the same with a Flatpak app, ie Dolphin, which emulates Gamecube/Wii games.
This doesn’t work:
Sub Main
shell (“flatpak run org.DolphinEmu.dolphin-emu -f /home/john/Emulation/ROMS/Wii/UNO.wad”)
End Sub
It doesn’t seem happy to run a Flatpak app from withing Libreoffice Impress, so I need a workaround.
I have tried all I can think of, spent many hours on trying to get this to work.
I would be grateful if someone could please show me how to do this - what script would work.

