I've come from this thread where I've been given a solution to automatically gracefully shut down Firefox, to prevent it from restoring all previously open tabs in the next session.
There are instructions in that thread for triggering a command on shutdown to close Firefox gracefully, but it's not for a different version of Manjaro than the one I have. Can someone tell me how to do the below equivelant in KDE?
In Settings-->Session and Startup-->Application Autostart
wmctrl -c firefox, Trigger: on shutdown
I have wmctrl installed and have got as far as putting the command in the startup / shutdown section, but there's no clear way to set the trigger to "shut down". Double clicking the item just opens a standard file properties dialogue box.