Closed mastazi closed 4 years ago
Thank you
Hi, I am trying to fix this in my windows computer but I cannot find the file "app.js" described here in my computer. The most similar I can find is in "C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgadmin\static\bundle\app.js" but I cannot find that line , I guess this one is from PostgreSQL not PostBird itself. I also looked for in the "Appdata\Roaming\Postbird and Appdata\Local\Postbird" folder and couldn´t find it there either. Could someone assist me please? Thank you!!
@antoniojhinojosa If you just installed using the installer you will not find that js file on your computer. You need to clone the repository, change the js file and then compile the app on your own machine. You need some familiarity with compiling Electron apps.
Fixes issue #118
Hey @Paxa
it seems that this line from app.js is not working on Windows:
root: remote.app.MainFilename.replace(/\/(index\.html|main\.js)/, ''),
here's the error from console when I try to open "See History", you can see that
/index.html
is not removed :Same when I open snippets.
So I changed the way we get the root of the app, and now it works on my Windows machine
root: remote.app.getAppPath()
you can see getAppPath() documentation here:
https://github.com/electron/electron/blob/master/docs/api/app.md#appgetapppath