I have a single Raspberry Pi 4 controlling two displays named “Display 1” and “Display 2”. I also have two instance of the MM project installed on the Pi in separate folders. To start each MM, I have to launch two terminal windows and position each one in each display before launching the MM project associated with that display. So, I position terminal window one in the first display and change to the first MM directory. Then I position the second terminal window in the second display and change the directory to the second instance of MM. Then I quickly type “npm start” in each window and see each display go black and display the modules I have in each instance.
My question is “How can I create a script to autostart each MM in their respected displays when I start the computer?” Does Linux have a way of directing output to a specific display?