Before shutdown notification

Jan Voo
2013-07-01
2014-06-02
  • Jan Voo

    Jan Voo - 2013-07-01

    Hi,
    Notepad++ sends NPPN_SHUTDOWN when all files are already closed.
    It would be very convenient to have a notification (NPPN_BEFORESHUTDOWN) informing that Notepad++ is going to close all files and shut down.
    Is it possible?

     
  • Jan Voo

    Jan Voo - 2013-07-07

    Knock kncok, is anybody in there?

    M.Foster, the author of Session Manager wrote:
    "Session Manager does not immediately save the current session when a file is closed. It must determine whether a shutdown is in progress, in which case all files will be closed but we don't want to save the session then. When Notepad++ is about to shutdown it sends file-closed notifications before it sends the shutdown notification. To work around this, when a file is closed Session Manager waits for saveDelay seconds. If the shutdown notification has not been received at the end of that time then the current session is saved".

    A nice workaround though it is some kind of prosthesis. With NPPN_BEFORESHUTDOWN notification all these problems would never arise.

     
  • DV

    DV - 2013-07-08

    I think it's worth idea to be implemented. You may contact Don HO directly regarding the proposal to add NPPN_BEFORESHUTDOWN.

     
  • Jan Voo

    Jan Voo - 2013-07-08

    Thanks DV!
    I'm pretty sure Don drops here from time to time.
    He is very busy man for sure.
    I'll humbly wait for an answer.

     
  • Mike Foster

    Mike Foster - 2014-06-02

    I too vote for a beforeshutdown notification :)

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks