Sublime Forum

Problem using Sublime Text via RemoteApp

#1

RemoteApp is a Windows feature like RDP but without showing the entire desktop, it only shows the requested app.
By observation, RemoteApp uses a separate user logon session to run processes.
session 0 = system processes
session 1 = first logon user
session 2…n = the consequence
You can check your current session ID in Taskmgr’s “Users” tab, right click on the table header and tick “ID”.

The problem is: if a user runs Sublime Text in session 1 and then tries to start another Sublime Text in session 2, the one in session 1 will be brought to front and the one in session 2 will be gone. That is, starting ST in RemoteApp doesn’t show anything, and the one in session 1 is brought to the front (which is invisible to the user in session 2).

What was expected:
The following behavior makes more sense to me.

  1. Session 2 starts Sublime Text with a whole new context (that is, opened files, unsaved files, etc.).
  2. Session 2 kills the one in session 1 and start with its context. (that is, sublime text in session one disappeared)
  3. Maybe show a box with options and ask what the user likes to do.

I’m using st4 4126.

Please help

0 Likes

#2

Having a single session and configuration necessitates running a single instance per-user. You can run multiple instances of Sublime Text using the --multiinstance command line argument, though be aware that all instances will be writing to the same session file and thus clobber each other’s data. Each instance can also have the same files open and also interfere that way. Note this is true of many applications.

0 Likes