As promised in the capsicum thread, I rewrote my quick hack into something better. It’s capable of running gedit now!