pgadmin4
pgadmin4 copied to clipboard
Refactoring broke flatpak paths
Please note that security bugs or issues should be reported to [email protected].
Describe the bug
The flatpak paths used in misc.js get prefixed with the base path https://github.com/pgadmin-org/pgadmin4/commit/91eb60a363c71608569bc646773a26105c3c11bf#diff-e9a2f2b06526683ff74be06bd684cb8e68985cb279698e2881506bae6337bdadR60
But they are intended as absolute paths.
This leads to an exception on start of the flatpak and it crashing https://github.com/razzeee/org.pgadmin.pgadmin4/pull/4#issuecomment-2273673481
To Reproduce
Steps to reproduce the behavior:
- Start flatpak
- Crash
Expected behavior
It should get the correct paths and start fine.
Error message
Total spawn time to start the pgAdmin4 server: 0.013 Sec
Failed to launch pgAdmin4. Error:
Error: spawn /app/pgadmin4/bin/resources/app/src/js/usr/bin/python ENOENT
Desktop (please complete the following information):
- OS: Linux
- Package type: Flatpak
Hi @razzeee, I've fixed the code. Can you please verify?
Should work like that, thank you.