[Github-comments] [geany/geany] Open files without write permission as read only (PR #2989)

xiota notifications at xxxxx
Mon Nov 8 17:10:26 UTC 2021


This PR makes Geany switch documents to read-only mode when the files being opened do not have write permission.  This will prevent the user from making changes that cannot later be saved.  If the document is saved with a different name, read-only mode will be turned off.  The document can also be manually switched out of read-only mode from the Documents menu.

`g_access()` is used to check permissions.  On Windows, it does not do a full permissions check, so files the user does not have permissions to change may still be opened in normal editing mode.
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/2989

-- Commit Summary --

  * <a href="https://github.com/geany/geany/pull/2989/commits/4917d296bf31b128276a5a0dd1e1d2aded61a431">Open files without write permission as read only</a>

-- File Changes --

    M src/document.c (5)

-- Patch Links --

https://github.com/geany/geany/pull/2989.patch
https://github.com/geany/geany/pull/2989.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2989
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211108/5bb2f134/attachment.htm>


More information about the Github-comments mailing list