GNOME Bugzilla – Bug 724460
Read-only files are not recognized
Last modified: 2018-02-23 16:22:14 UTC
Created attachment 269268 [details] latex and gedit try to modify same read-only file (window title) It seems that window's title should update when open read-only file. In src/main_window.vala line 842: active_document.readonly ? " [" + _("Read-Only") + "]" : "" want to add "[Read-Only]" to window's title (like gedit), but it not work
What are the permissions of the file? Is it read-only for the user? Maybe the read-only flag is enabled in latexila only when the file is already opened in another latexila window.
The file is created by root and read-only for others. Oh, you are right, the read-only flag is enabled when the file is already opened in another latexila window. I'm reading latexila's source code and misunderstand document's readonly property.
Well, I think you have found a bug, if the file is read-only for the user opening the file and latexila doesn't recognize it as such. But the text editor part of latexila is quite rudimentary. The plan is to make the gedit source code more reusable, and use it in latexila. And GtkSourceView is a good place in my opinion to put the reusable code. That's what I've done for the search and replace.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-latex/issues/23.