There might be simpler ways around this.
In many desktop environments, you can run an arbitrary command via the GUI. A common shortcut for this is AltF2. Just run gnome-terminal -x sleep 10h
.
Or: Login to a TTY (CtrlAltF1-F6). Run DISPLAY=:0 gnome-terminal -x sleep 10h
.
Or: You might have another terminal emulator installed, say xterm
. Run it, and then gnome-terminal -x sleep 10h
.
Or:
- Open your file manager, and go to
/usr/share/applications
- Find
gnome-terminal.desktop
, and copy it somewhere (your ~/Desktop
, or ~
, etc.)
- Edit the copy (probably can be done by right clicking and choosing Open With, and then picking an editor)
- Change
Exec=gnome-terminal
to Exec=gnome-terminal -x sleep 10h
- The copied file should be showing the GNOME Terminal icon. If it isn't, right click it, go to Properties and ensure that it is executable.
- Double-click the copy to execute it, which should launch an instance of GNOME Terminal running
sleep 10h
.
You now have 10 hours to undo whatever you did.