Custom commands question

Asked by Paul Crook on 2014-04-29

Hi and thanks for the cool tool.

I have a question about custom commands. I set a profile's custom command to "echo profile" and used that profile in a layout. I then set a terminal's custom command to "echo terminal" in that layout. I only see "profile" when the terminal windows open. If I remove the profile's custom command, I then see "terminal" when opening. When both commands are configured, are both commands being run? If so, in what order? And if so, why do I only see one of them?


Question information

English Edit question
Terminator Edit question
No assignee Edit question
Last query:
Last reply:

From the code:

        if options and options.command:
            # Do this when passed "-e <COMMAND>"
        elif options and options.execute:
            # Or do this when passed "-x <REST_OF_LINE_AS_COMMAND>
        elif self.config['use_custom_command']:
            # Or do this when Profile has a Custom Command
        elif self.layout_command:
            # Or do this when Layout has a Custom Command
        elif debugserver is True:
            # Not relevant.

Only the first true block gets run. This shows us that the profile takes precendence over the layout, and if both are defined the layout command never gets run. When I look at this, I think this is actually wrong, and the layout should take precedence.

My basic question was: if there's a custom command in the profile and the layout, which one gets run. So I guess that means I need to remove those in the profiles and put them in the layout. I also agree the layout should take precedence, since in my case, I'm launching multiple layouts, each of which does an autologin to a specific set of servers in tabbed windows.

Can you help with this problem?

Provide an answer of your own, or ask Paul Crook for more information if necessary.

To post a message you must log in.