-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laverna won't start #913
Comments
It's been a really long time since I did not review one of my first package in AUR (a lot of bad practices). Let me first invite you to update Laverna if you installed it from AUR. I just have a new computer and I installed it from AUR and there's no issue ... |
Thank you @funilrys for the answer. I tried already to reinstall laverna, unfortunately this didn't help at all. Here is the information regarding the installed version of my machine:
If I can help with some other information, please just let know. |
@nachevn First and before anything you should avoid Explanation about why you should avoid Actually, the current upstream (AUR) version is |
Unfortunately same error also with the "newest" version...
|
Can you please copy paste the error so I can take a look at it now that we are in the same version ? |
|
@nachevn Did yoou started it from terminal or laverna.desktop ? Can you give me the terminal output ? |
@funilrys There is not really terminal output shown, but in comparison with the laverna.desktop way there is a second exception shown:
After the second dialog is closed, nothing more happend:
|
Okay @nachevn I wrote a patch but I can't test so you are going to test it 😄 I created a Gist here Simply run the following and let's see if it's fixed. If it does fix it I'm going to put the patch into the AUR package and report it into this repository.
|
@funilrys didn't work. Still the same error |
@nachevn Updated the patch.
|
@funilrys Thanks, it works. Would you please provide new version in AUR? |
Thanks for feedback @nachevn. Please uninstall Laverna ( |
@wwebfor Here's the patch that fixed this. To apply the following patch please execute # patch -p0 < pathToThePatch From the directory which contains diff --git electron.js electron.js
index c640036..10a8999 100755
--- electron.js
+++ electron.js
@@ -185,11 +185,13 @@ appHelper = {
*/
createWindow: function() {
- // Recover window state (width, height, and x&y position)
- this.state = windowStateKeeper('main', {
+ // Set window state (width, height, and x&y position)
+ this.state = {
+ x : 0,
+ y : 0,
width : 1000,
height : 600
- });
+ };
// Create new browser window
win = new BrowserWindow({
@@ -274,11 +276,6 @@ appHelper = {
*/
registerEvents: function() {
- // Save window state (width, height, and x&y position)
- win.on('close', function() {
- this.state.saveState(win);
- }.bind(appHelper));
-
win.on('closed', function() {
win = null;
}); |
Hello there, For Arch Linux, I think I will create the AUR package once we are fixed with the name of the fork ... Have a nice day/night, |
@daed if you have time maybe you can implement my patch if it was not already fixed on the dev branch 👍 |
The dev branch doesn't actually contain an electron.js file in it. It either needed to be rewritten, or it's just more evidence that the project was moving singularly toward a client/server model I guess. I've patched my local copy of master. I'll test it and push it when I get a chance. Realistically, it's going to be a while before dev is in a good state for release, so it may still be valuable to do maintenance for the time being. |
OS: Arch Linux
Error (see screenshot):
The text was updated successfully, but these errors were encountered: