3

I often like to kill a set of terminal instances by process id but mate-terminal (which I believe to be a fork of gnome-terminal) will run a number of windows under the same PID. This is not always true and I haven't noticed what determines it,but the outcome is that if I kill a PID I will kill some windows that I don't want to kill.

As a fix, I'd like to tell terminal to start with a new process, but I don't see that option in the terminal man page. Have I missed something? Or perhaps there is a bash command that can force this.

  • What is about mate-terminal --window? – N0rbert Apr 14 '19 at 13:22
  • @N0rbert No. The same PID unfortunately. I can understand why that is and should be default behavior, but the option is offered by other applications eg.geany. – Stephen Boston Apr 14 '19 at 14:02
  • "I often like to kill a set of terminal instances" – not a typical user behavior :) – egmont Apr 14 '19 at 20:55
2

The option you're looking for is --disable-factory.

  • 1
    From man mate-terminal: "--disable-factory" has "Do not register with the activation nameserver, do not re-use an active terminal". – DK Bose Apr 15 '19 at 1:25
  • And that's something gnome-terminal doesn't seem to offer. konsole has --separate which does the same thing. – DK Bose Apr 15 '19 at 1:26
  • 1
    For gnome-terminal it's a bit more cumbersome but still doable: you have to manually fire up a server using a custom --app-id, followed by the client with the same option. – egmont Apr 15 '19 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.