dail8859 / NotepadNext

A cross-platform, reimplementation of Notepad++
GNU General Public License v3.0
8.66k stars 527 forks source link

Does Not Start On 'Open with...' ... With Session Resume On #567

Closed influential-eliot closed 1 month ago

influential-eliot commented 1 month ago

Operating System and Version

Debian 12 Wayland Gnome

Distribution

flathub

Description

You can close this immediately but keep it as an instance of the issue, perhaps? (see 'work around' section)

Incident - NotepadNext Does Not Open A File Directly With Session Resumption

I noticed that when I tried to start NotepadNext from by using 'open with' in Debian it was not starting.

Work Around - Set Resume Session To FALSE

I found the settings .ini file and edited the option to resume session to FALSE and this allowed me back into the program again.

Steps to Reproduce

  1. Ensure that you have the session resumption option turned on in the NotepadNext options
  2. Try to right click a file and open with NotepadNext
  3. Watch it not open

Additional Details

Investigation

I initially tried starting it straight from the shortcut, instead. But this also didn't work.

So, I ensured that all instances of the process were closed, and that the flatpak helper was closed, too. Then tried the shortcut again. Still no joy.

This left me trying to run the flatpak from terminal.

There I noticed that there was something (sorry, lost it now) about the session resumption going on.

Future Incidents

If I see this happening again in the future, I'll try to capture more information for you. 👍

dail8859 commented 1 month ago

edited the option to resume session to FALSE

Are you specificalyl talking about RestorePreviousSession?

Something within the [CurrentSession] section may have gotten corrupted and the application is not properly handling that case.

The application does generate an active debug log within the application while running. There's also ways to get the log to print to the console but not sure how exactly to do it with flatpak on linux.

If you do happen to get any additional info, that would be appreciated. Thanks for bringing this up.