Sublime Forum

Block terminal running sublime

#1

I’m looking for a way to block the terminal when running sublime.
We are using build 4126. Running on linux (bash).

My purpose is to block the terminal as long as sublime is running. I was trying to use the “–wait” flag, but then I must provide a filename as a param to the command. It works fine as long as I’m using the -w and provide a filename.
Then, when I run without a filename, but with a “-w” flag, sublime is not blocking again…

It is like there’s a built in & at the original sublime command.

0 Likes

#2

What are you trying to achieve doing this? You could run a separate instance but that interferes with sessions.

0 Likes

#3

We are running sublime under a job manager, and it loses connection to the instance of sublime, as if it finished with exit code 0.

0 Likes

#4

We are running sublime under a job manager

That doesn’t really clear anything up unfortunately. ST is an application not a job in the traditional sense.

You can run ST in a blocking fashion using --multiinstance, but as it suggests this bypasses the single instance functionality which ST relies upon to not override your session, handle the command line tool, etc.

0 Likes

#5

This works well.
I understand the single instance issue. For our use it is fine.

Thank you very much for your help.

0 Likes