Sublime Forum

Same user multiple sessions

#1

Hello there, I have problem / bug report / feature request for Sublime. I have Windows machine and the same Windows’ user account has two (or more) sessions active at the same time at the same computer (RDP server). Launching Sublime at the second session does not work.

Steps to reproduce:

  • Launch Windows machine.
  • Launch Sublime.
  • If multiple sessions by the same user is not enabled, enable it. Go to group policy editor, Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections > Restrict Remote Desktop Services user to a single Remote Desktop Services session > Disabled.
  • Open RDP client. Connect to localhost with your current Windows’ user name and password.
  • So far so good.
  • Launch Sublime.
  • Does not work.
  • Minimize remote desktop or log out from the second session.
  • Observe that there is new second Sublime window (in the first session).

Sublime is obviously using some kind of cross-process communication protocol (IPC) to communicate between program instances (processes) that works fine cross-sessions on the same computer. But displaying window of one process form one session/desktop on another session/desktop does not work.

Please change the IPC mechanism from current one to one that works only on the same session/desktop and that it cannot reach other Sublime instances on other sessions/desktops. Because Sublime on other session/desktop cannot display window on current session/desktop and user is confused and thinks Sublime is broken.

0 Likes

#2

How would you expect the sepate instances to deal with the shared data (plugins, sessions, etc.)? If you have multiple instances they will step on each other’s data.

2 Likes

#3

Exactly the same as if you create two instances of Sublime on the same session/desktop. Every program needs to be able to handle this. Since like ever, even in Win3.0 days, even in WinNT days, even in Win95 days. Having single program launched multiple times (processes) is normal thing any program should be able to handle.

0 Likes

#4

You don’t create multiple instances of Sublime Text for the same user, there’s a single process with multiple windows. This is how most (all) modern web browsers work as well.

0 Likes

#5

Except the first instance is stuck in “not responding” state and you create new one. It fails to contact the first one in some timeout and creates second window in second instance. Happened to me multiple times.

0 Likes

#6

That sounds like a bug unrelated to this discussion? There should only be one ST instance, as otherwise they step on each others data.

0 Likes