Sample Header Ad - 728x90

Gedit cannot save in shared folder (Virtualbox)

10 votes
4 answers
2830 views
I'm getting the
Cannot save _____ Unexpected error: Error renaming temporary file: Text file busy
in Gedit 2 when I try to save in a shared folder with Virtualbox (Debian). I've searched and apparently it's a Gedit problem. None of the solutions seem ideal or work for me. Would it be possible to create a shell script (external tools plugin) that saves the file somewhere else, then copies it back in shell? So I'll need to grab wherever Gedit's stored the temporary (live?) file. Or if this is not possible/won't work/bad practice, does anyone know a good way to get around this? I really like Gedit and prefer to use it. ---------- Currently, this is my script. I tell external tools not to save but pass the document as input (stdin) bin="" while read LINE; do echo ${LINE} # do something with it here bin="${bin}${LINE}\n" done echo $bin > /home/me/data2/test.txt It works fine except it doesn't preserve tabs. I'my only editing plain text files. Edit: this also seems to skip the last line
Asked by Raekye (609 rep)
Jan 27, 2013, 09:11 PM
Last activity: Jun 24, 2020, 10:15 AM