Originally Posted by singaporexuexi
interesting challenge. How I solved it.
1. write a shell script and save it in your bin directory:
chmod +x name_of_shell_script.sh
edit gedit launcher:
right click Applications menu > Edit Menus
click on accesories gedit properties
change gedit %U to /home/username/bin/name_of_shell_script.sh
now when you save a file it will save to gedit directory by default.
write a sed script that changes all files in gedit directory to have .txt extensions. and set it as a cron job.
I warned you this was a hack!