I’m trying to get a simple script working.
I want to open firefox, wait 10 seconds, then close firefox
my script is
!#/bin/bash
firefox && sleep 10 && wmctrl -c firefox
however, this just:
1 - gives me an error message
(process:5133): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
2 - then starts firefox
BUT
3 - doesn’t sleep
4 - doesn’t close firefox