New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geany.conf
not checked for successful save.
#2993
Comments
My opinion... users should be notified (not nagged) that there is a potential problem (status window during normal operation, stderr on close). Then they can decide whether to "fix" the problem. The "problem" may be intentional. Setting file permissions has a long history of use to prevent changes to files. The same approach should apply to project files. |
As @eht16 said elsewhere, just because something happens to work that way, doesn't mean its intended to. After all by that measure there would never be any bugs, because buggy behaviour is the way the software works (hmmmmmmmm, maybe you are onto something 😄). |
@elextr @eht16 Would either of you object to unifying the read-only warning message behavior of project files, Users would be notified of potential problems with read-only files, including cases where they are not currently notified, while also being free to mark file permissions as they see fit. |
@xiota IIUC the current behaviour is there are messages for "read only", "do you want to overwrite" and maybe other conditions when a project file is first created, because those conditions are explicitly checked, but they are not checked again. So from then on its a message meaning "project save failed" that can be generated for many reasons, not just permissions. And as I said above, saving I would advise patience (yeah, I'm not good at it either) until the session-split branch is merged to avoid conflicts and re-bases and then you can do all three files at once. Then converting the save of all three prefs files to test the return code from That common dialog can have a "Show in status bar and window instead" checkbox, but its hard to see how that can be saved in prefs when it can only be selected when saving prefs has failed 😁 so it would show at least once per session. But that seems useful to me. Sadly One thing is that although there is only ever one |
Or alternatively the warning that prefs or project failed to save could be provided by a |
I refer to permissions and read-only files because those are the most common conditions that produce popups. The messages can be produced several times a minute, even seconds apart, depending on how often the user saves files, switches documents, or performs other activities that prompt project saving. This makes Geany unusable.
You seemed averse to changing the project popups messages. I suggested unifying config file behavior as a compromise to add checking for files that aren't checked, while reducing the intrusiveness of the current checks.
The session-split branch makes managing preferences more complicated than it already is. In the long run, it would be better to migrate to the stash system. The current near-duplicate save/load code would become a single "add". Then the stash system could be extended with session support. The add/save/load functions could take a bool or have session variants. Since the stash system uses pointers to the preference variables, no other changes would be required.
Various preferences.
The changes I've suggested do not eliminate user notification. It makes them less intrusive. Users would be able to more easily ignore them. But that's up to them.
That would be fine with me.
That could also work. |
Which is why the infobar is a better idea, the user is informed, but doesn't immediately have to dismiss it, they can keep working, or go investigate why it failed, and as I said it can have a "show on status bar and status window only" button so if they intend the save to fail they can use that.
Yes, thats (part of) why its taken literally decades to get to the current branch from when the idea was first floated. But as the announcer said "you ain't seen nothing yet" wait until project files is split too 😈 |
From #2953 (comment) thanks @xiota
As noted in the comment above, the return from
utils_write_file()
ofgeany.conf
is not checked, but the return is checked for write of a project file.As pointed out this seems inconsistent, is it deliberate and should it be changed?
The text was updated successfully, but these errors were encountered: