I want to start firefox when my computer returns from a suspend state

I want to start firefox when my computer returns from a suspend state.

I found this, but it is way too complicated for me.

I looked that over, and the process outlined looks correct.

However, that is specific to one task.

You could simplify that by simply having it create a "flag file" upon system restart, i.e.

touch /home/wakeFromSuspend

Then you could have a script run by cron to scan for the existence of that file, at which point it would trigger the desired action(s) and remove the flag file

rm -f /home/wakeFromSuspend

to prevent startup of multiple instances.