Describe the Bug
PCSX2, on the first time run, sets the default .wav file paths for sounds related to the achievements feature. The user is allowed to pick other files on the system. However, the default paths for InfoSoundName, UnlockSoundName and LBSubmitSoundName point, respectively, to
{appimage runtime dir}/usr/bin/resources/sounds/achievements/message.wav
{appimage runtime dir}/usr/bin/resources/sounds/achievements/unlock.wav
{appimage runtime dir}/usr/bin/resources/sounds/achievements/lbsubmit.wav
However, take into account that for AppImage packs, the AppImage runtime will create a usermode mount point under /tmp/._some_random_stuff to mount the bundled squashfs with PCSX2, libraries, assets and so on. But the AppImage version is not meant to be portable, it (rightfully) stores configuration under $HOME/.config/PCSX2.
Each time an AppImage runs, its runtime directory is different, so that means that the default file paths (InfoSoundName & friends) stored in $HOME/.config/PCSX2/inis/PCSX2.ini point to an invalid location that will change after another AppImage execution. BTW, this is presumably happening too in portable versions for Windows (normal .zip after creating the portable.ini file so that config is saved inside the program dir).
Proposed solution: Leave the parameters unset in the .ini unless the user picks specific wav files in the system. But regenerate the default paths in memory when PCSX2 starts, so that a stale path (to an AppImage mount that might not exist anymore) isn't saved.
Have a nice day
Reproduction Steps
Use PCSX2 AppImage and look at the .wav file paths on the achievements interface or find them in the PCSX2.ini config file.
Expected Behavior
Handle the default paths as relative paths from the runtime directory
PCSX2 Revision
v2.6.3
Operating System
Linux (64bit) - Specify distro below
If Linux - Specify Distro
Debian
Logs & Dumps
No response
Describe the Bug
PCSX2, on the first time run, sets the default .wav file paths for sounds related to the achievements feature. The user is allowed to pick other files on the system. However, the default paths for InfoSoundName, UnlockSoundName and LBSubmitSoundName point, respectively, to
{appimage runtime dir}/usr/bin/resources/sounds/achievements/message.wav
{appimage runtime dir}/usr/bin/resources/sounds/achievements/unlock.wav
{appimage runtime dir}/usr/bin/resources/sounds/achievements/lbsubmit.wav
However, take into account that for AppImage packs, the AppImage runtime will create a usermode mount point under /tmp/._some_random_stuff to mount the bundled squashfs with PCSX2, libraries, assets and so on. But the AppImage version is not meant to be portable, it (rightfully) stores configuration under $HOME/.config/PCSX2.
Each time an AppImage runs, its runtime directory is different, so that means that the default file paths (InfoSoundName & friends) stored in $HOME/.config/PCSX2/inis/PCSX2.ini point to an invalid location that will change after another AppImage execution. BTW, this is presumably happening too in portable versions for Windows (normal .zip after creating the portable.ini file so that config is saved inside the program dir).
Proposed solution: Leave the parameters unset in the .ini unless the user picks specific wav files in the system. But regenerate the default paths in memory when PCSX2 starts, so that a stale path (to an AppImage mount that might not exist anymore) isn't saved.
Have a nice day
Reproduction Steps
Use PCSX2 AppImage and look at the .wav file paths on the achievements interface or find them in the PCSX2.ini config file.
Expected Behavior
Handle the default paths as relative paths from the runtime directory
PCSX2 Revision
v2.6.3
Operating System
Linux (64bit) - Specify distro below
If Linux - Specify Distro
Debian
Logs & Dumps
No response