After installing gnucash I had exit root terminal and opened user terminal with command:
podman exec --interactive --tty --user $(whoami) --workdir /home/$(whoami) mycontainer /bin/bash
and typed:
export DISPLAY=:0
gnucash
and it gnucash opened in GUI
But on reboot it is not working:
$ gnucash
No protocol specified
Unable to init server: Could not connect: Connection refused
Error: could not initialize graphical user interface and option add-price-quotes was not set.
Perhaps you need to set the $DISPLAY environment variable ?
Run ‘gnucash --help’ to see a full list of available command line options.
I also tried:
$ gnucash --display=DISPLAY
Unable to init server: Broadway display type not supported: DISPLAY
Error: could not initialize graphical user interface and option add-price-quotes was not set.
Perhaps you need to set the $DISPLAY environment variable ?
Run ‘gnucash --help’ to see a full list of available command line options.
SOLVED: I looked at your script and found it needed:
xhost +
command on the host.