Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If the file is opened read-only, then programs should fall back to save as. Unfourtuantly, the only standard way to signal read-only is with file permisions. This will work, but many programs would likely have report a permisions error prior to the save as. Also it will cause problems for programs that transparently modify the file on disk while viewing. I suppose you could hard code the read only parameter into the command that is used to execute the external program. Or have the external programs check if they are in a tmp-directory.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: