Do not run a bash from the startup applications

Hi,

I have made a bash that starts Chromium to a URL and full screen, if I run the bash from the terminal it works fine, but if I put it in application start it does not run.

I leave a sample of the code:

#!/bin/bash
chromium-browser --user-data-dir=test --no-first-run --no-default-browser-check --kiosk http://google.com

You may have to indicate that it runs from the end, with terminal-mate e ??

thank you very much for your help

If you are running the bash from a terminal and it works fine but not when you run it at startup, it may be as a consequence of a "race condition". A race condition is where some things get missed due to too many thing trying to start at the same time at startup. One solution to this is to insert a sleep command into your bash to delay it slightly. For example:

#!/bin/bash
sleep 5
chromium-browser --user-data-dir=test --no-first-run --no-default-browser-check --kiosk http://google.com
2 Likes

There is a built-in "Delay" option for startup programs in the startup applications preferences when you press on edit. I think it would be better to use that in case you want to run the bash script after startup and don't want to wait.

Hi,

thank you very much for your help. In the end I managed to execute it by adding in the moderated command to start applications.

mate-terminal -e

Now it works correctly

Thank you very much

1 Like