notion-enhancer / notion-repackaged

notion executables with the notion-enhancer embedded & a vanilla port of the official app to linux
https://notion-enhancer.github.io/getting-started/installation
MIT License
908 stars 52 forks source link

App won't restart on Ubuntu 20.04 #52

Closed bjohas closed 2 years ago

bjohas commented 2 years ago

Hello,

when I run the app, and then close and try to start again, the app won't start.

I get

Error: Error: ENOENT: no such file or directory, open '/opt/Notion Enhanced/resources/app-update.yml'

Not sure if it's relevant. Any ideas?

dieggpereira commented 2 years ago

@bjohas I noticed a similar problem here. My solution was closing always with Ctrl + Q. I don't know what is the real problem, but here it was solved with that.

ashleywaite commented 2 years ago

Also on Ubuntu 20.04 and that specific error appears for me whether it ran successfully or not.

Check if it's actually closing to system tray. When it's present in system tray clicking the regular launch shortcut again doesn't work and it looks like nothing happens because it's already running.

This is definitely not expected behaviour and should be considered a bug IMO. Clicking on the app icon looks like it's doing something for a moment, then nothing happens. Likewise, using 'new window' from the system tray does not open a new window for me ever.

Using 'toggle visibility' from the system tray does show the window though, relaunch also works, as does simply killing all background notion processes with something like killall -r "notion-app*" and opening it again freshly.

I did get this error on terminal though when I tried to run it while it was already running and I'd closed the existing window:

{
    name: 'TypeError',
    message: 'focused_window.isMaximized is not a function',
    stack: 'TypeError: focused_window.isMaximized is not a function\n' +
      '    at Object.__exports.createWindow (/opt/Notion Enhanced/resources/app/embedded_enhancer/mods/core/createWindow.js:42:43)\n' +
      '    at handleActivate (/opt/Notion Enhanced/resources/app/main/main.js:71:36)\n' +
      '    at startup (/opt/Notion Enhanced/resources/app/main/main.js:149:5)\n' +
      '    at processTicksAndRejections (internal/process/task_queues.js:97:5)'
}

Which would probably explain why none of those methods work.

dragonwocky commented 2 years ago

for the original issue: dup of https://github.com/notion-enhancer/notion-repackaged/issues/63

for the stuff in comments: dup of various issues in the desktop repo, already fixed and awaiting release of v0.11.0 (it's close!)