i have changed the last line of this file and works for me.
/usr/lib/python3.10/site-packages/configgen/generators/dolphin/dolphinGenerator.py
Values
return Command(videomode=system.VideoMode, array=commandArray, env={"XDG_CONFIG_HOME":"/recalbox/share/system/.config/dolphin-emu", "XDG_DATA_HOME":recalboxFiles.SAVES})