added GNOME & KDE commands to copy the clipboard contents to $file
changed chmod's arguments from o-r to go-rw. This makes the temporary file r/w by ONLY the owner