• Login
Community
  • Login

Same NPP executable run on multiple PC : need their own sessions

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 240 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Gian Matteo
    last edited by Nov 16, 2023, 9:30 AM

    I have a Dropbox folder shared among three computers.

    That said, on each of these computers I launch the same NPP executable.

    I would like to have each computer remembering (say saving) its own session on NPP close.

    I have tried both through the command line parameter -openSession and NppSessionMgr but it seems there is no way to get it.

    Please tell me I can achieve that in some way.

    Thanks a lot
    Gin

    A M 2 Replies Last reply Nov 16, 2023, 12:05 PM Reply Quote 1
    • A
      Alan Kilborn @Gian Matteo
      last edited by Nov 16, 2023, 12:05 PM

      @Gian-Matteo said in Same NPP executable run on multiple PC : need their own sessions:

      I have a Dropbox folder shared among three computers.

      What’s important to N++ that is in this shared Dropbox folder?

      …I launch the same NPP executable.

      So presumably you have a “portable” N++ in the shared folder?

      Is your session.xml file part of the shared folder content, i.e., are you running with a “local” configuration?

      I’d think that if you weren’t running with a “local” config, i.e., your settings are stored in %appdata%\Notepad++, that each computer is NOT sharing %appdata% information, and you’d be all set and independent.

      But you say this is not the case, so I think you’d need to provide some more detail in order for someone to help.

      1 Reply Last reply Reply Quote 3
      • M
        mkupper @Gian Matteo
        last edited by Nov 16, 2023, 7:16 PM

        @Gian-Matteo - Try experimenting with Notepad++'s -settingsDir command line option. If you point it at a folder that is not shared with the other computers then it will be in it’s own session.

        Keep in mind that Notepad++ reads its configuration and session files when it starts and writes then back out when you exit or close Notepad++. Thus, you will need to move and think carefully when testing out and using more than one copy of Notepad++ at the same time either on the same or different machines.

        It is likely possible* to do what you want to do but you have not provided enough information about how you are currently set up for others to provide suggestions that may be a better fit for your situation or desires.

        * I had to add an asterisk as there is one issue you may run into which is Notepad++ does not have perfect support for running two or more instances of Notepad++ on the same machine at the same time.

        1 Reply Last reply Reply Quote 2
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors