Restart firefox

Firefox once had the option to restart from the File menu, but it was removed a long time ago. Since I don’t know if it can be configured from about:config, I created a script and assigned a keyboard shortcut (C-A-f), without the need to install any addon:


Hace mucho firefox tenía la opción de reiniciar desde el menú Archivo pero hace mucho que la quitaron. como no sé si se puede configurar desde about:config creé un script y le asigné un atajo de teclado (C-A-f), sin necesidad de instalar ningún addon:

#!/bin/bash

echo "Restart Firefox..."

# Kill all Firefox processes
echo "Shutting down Firefox..."
killall firefox || killall firefox-bin || killall firefox-esr

# Wait a moment to make sure all the processes are over.
sleep 2

# Restarting Firefox
echo "Restarting Firefox..."
firefox &

echo "Firefox has been restarted!"

I hope someone will find it useful. (Espero que a alguien le resulte útil).
:people_hugging: :argentina: