Writer defaults to 'don't save'

The used desktop? It’s GNOME based, but what does that have to do with how Libre Office works?

Because you don’t understand that red is not “default”, it’s “dangerous”. It’s a different OS, an opportunity to learn new ideas.

“Default” button is not “of different color”. “Default” is “the button that is used when you press Enter”. It is not about mouse-clicking.

image

On the screenshot from a Gnome dialog above, the default button is Save, not the red Don’t Save! See that the Save button has the dashed border around it, which is the keyboard focus; if you see the dialog, and simply press Enter, then the document will be saved - that is what “default” means. And the red color is on the non-default button, using the normal “red = danger” idiom.

2 Likes

It seems to me that Don’t Save is counterintuitive. If the Save button were the default, then hitting enter would save the document. In fact, I have Autosave selected in settings.

I’m willing to learn new things on new platforms (Started out with TRS-80, graduated to Unix, then to Windows, now to Linux), but the defaults on the same program should be the same, or it’s really not the same program. JMO. However, this seems like a conversation that’s going nowhere, so I’ll leave it at that.

1 Like

and it does.

Unfortunately, if I make changes and don’t explicitly hit “save”, it does not or I would not have looked for a solution.

Here is the source code for the dialog.

“Don’t Save” is <class name="destructive-action"/>.
“Save” is <property name="has-default">True</property>.

The defaults on the same operating system should be the same

  • The problem is not in LibreOffice, but in how the programs represent the different versions (or distributions) of the operating systems

Are you saying that the operating systems affect how Libre Office behaves, rather than LO has been programmed differently for each OS?

Yes.

Different Linux distributions use different desktops, window composers, and environments.
In addition to the user’s own settings, LibreOffice and many other programs are represented differently despite using the same Linux kernel.

While we do care about OS (DE) conventions, and try to do things differently, according to OS/DE, where it makes sense, I claim that in this case LibreOffice works by its own decision, which is - make “Save” the default. It is the default; it gets activated when the user presses Enter without explicitly moving keyboard focus. I claim that @rosawoodsii is confused if they say that pressing Enter does not save file, but activates “do not save” option.

By the way, this happens to coincide with Gnome HIG; and other apps that follow Gnome HIG, like gedit, behave the same way (and look the same, too). What we do modify in the dialog to match the OS/DE - is the order and look-and-feel of the buttons (e.g., that red color is specific to Gnome; on Windows, the order is Save - Don’t Save - Cancel).

@rosawoodsii could provide a screencast to show the problem, if it exists. And if it really exists (meaning that pressing Enter closes without saving), that would be a bug; @rosawoodsii could already conclude, that others see the dialog behaving according to expectations.

enter-saves

FYI : System call - Wikipedia

I think I found the source of my error. I played around with a few new test documents and what I found was that after I’d named them and just hit “enter”, a dialog box comes up with “untitled” as the name and the number of characters, etc., for the document. Since I’d given it a name, I assumed the dialogue was telling me it hadn’t been saved. Now I know.

2 Likes

I’m also stupid. I clicked the RED button without thinking. It seemed like the default. I lost a lot of work. Do I use red buttons in my own apps to signal “Danger”? Yes, yes I do. So, why would I click on the red button? I think a few things play a role. First, maybe I expect the most “noticable” to be the reasonable default? Second, the positioning plays a role; it is probably a Western bigotry, but I read from left to right, so maybe I’m’ expecting the most “expected” course of action to be the left-most as an unconscious expectation? Moreover, there is NO GREEN. So, my suggestion, for your kind consideration, is to make the Save Button GREEN, and to reorder the buttons from left to right as: Save (rendered in green), Cancel (maybe rendered in yellow), Don’t Save (rendered as red).

The red colour comes from your operating system distribution, not from LibreOffice

Thanks. Is that relevant to the basic suggestion? I wrote about a lot more than the color red.

Pretty much, you get a similar issue when shutting down Linux which is where the conditioning to click the red button comes from

Yes, because you bark at the wrong tree. As @mikekaganski detailed out colour and placement is done according to your OS/desktop. So I guess you wish to contact the developers of Gnome(?) or whatever desktop you use.

And suggestions for enhancements in LibreOffice shall go to Bugzilla, as you may find here:

Neither you nor @ernestai responded to anything I wrote. That being the case, why would either one of you even respond at all? Surely there is something of value you could be doing?

Yes, not continuing this thread. If you wish to go to bugzilla, do this. This site is for users helping users, nothing more.

PS: Not “ernestai”, there is an L at the end - like Albert Alastair Alison …

On Windows, there is no colour except the highlighted button that is default action when pressing enter. The issue is your OS colouring the Don’t Save button that is most likely to cause data loss. I am sure you can remove the red colouring applied to this and other dialogue boxes, maybe by turning off Effects for dialogue boxes in the OS.

CloseUntitledDocument