Crash on launch: app.makeSingleInstance is not a function
#358
Comments
Strange. Any ideas @rjocoleman? The docs for Electron 1.8.8 definitely state this is a function. |
Interesting. @jgierer12 Where did you get the package from - https://standardnotes.org or somewhere else? Is it the Official AppImage or from a distro's package management? |
I have the same problem. Mine is from the Arch Linux AUR, so my guess is it's the same for him as he is using Manjaro (I am using Arch Linux). It also gives: Not sure if that has anything to do with it. So it's possible it has to do with the code of the AUR instead of the software itself. |
Ah, right, AUR is building with Electron 4 (soon to be 5) where as this app is still using the v1 API. Technically a packaging issue, but I'll see what I can do |
By the way, this issues does not affect the official |
I've filed a quick note with the AUR package that appears to be used here too with an interim patch, to hopefully alleviate any release pressure - as there is no guarantee @mobitar will agree with the technique used in #359 or be able to release it quickly. https://aur.archlinux.org/packages/standardnotes-desktop/#news If anyone effected wants to build and install it themselves and use that package the steps are:
That said - my work doesn't address any other potential API inconsistencies. It only touches the startup check for an existing instance of the app. The official StandardNotes distributed AppImage is the best way to use this application on Linux as it's got all the dependencies at the correct versions (and AUR doesn't allow an elegant way to do that for Electron). |
Your patch seemed to be applied into the AUR package and it works again. I also tested the AppImage and that one obviously works as well. I will test next update which one of those is the easiest to update and use that one going forward. Thank you very much for fixing this so quickly. |
Yes, the patch fixes the issue for me as well. Thanks a lot @rjocoleman 🙏 |
Thanks for the quick resolution @rjocoleman! This will be great too as we're wanting to upgrade to Electron 5 in an upcoming release. |
After upgrading from
v3.0.9
tov3.0.12
, the app crashes immediately when trying to launch it:System specs
The text was updated successfully, but these errors were encountered: