flxzt / rnote

Sketch and take handwritten notes.
https://rnote.flxzt.net
GNU General Public License v3.0
6.42k stars 215 forks source link

Problem at the moment of Export the archive, #1073

Closed Fsayajin closed 2 months ago

Fsayajin commented 2 months ago

When I save an archive, it exports as a '.archive' file, but it can't be opened with any program, including Rnote. This issue occurs most of the time, although occasionally it works. Additionally, today I encountered problems when saving the PDF archive. I'm working with Rnote Version 0.10.0 on Windows 11.

Doublonmousse commented 2 months ago

Can you provide screenshots of the process, I'm not sure I understand what you mean.

Fsayajin commented 2 months ago

This is what I mean: I discovered that the problem arises when I change the name of the file during download. If I don't change the name, the file is saved as '.Rnote', which is what is expected (Documento Nuevo). However, if I change the name to something else, such as "Documento Nuevo 2", then it can't be opened, and it is saved as '.archive'. Captura de pantalla 2024-04-10 101516 Captura de pantalla 2024-04-10 101929 The second picture shows the different ways I tried to download the file. However, the same issue occurred in all cases. (I apologize for translating the button names to English in that manner, but I have the program set to Spanish.)

silvasch commented 2 months ago

I'm not sure, but I think you have to save it with a .rnote file ending. So the new file name should be Documento nuevo 2.rnote

Windows hides file extensions by default, which is why the documents seem to have the same name.

Doublonmousse commented 2 months ago

Oh right I see what you did. The file is selected, including the .rnote file ending image

So that changing the name without removing the selection (or only modifying the first part) will end up with a file that has no extension upon saving

image

Doublonmousse commented 2 months ago

Found the reason, the filter is not working in the file chooser because it seems right now that you cannot set a default filter without giving a list of filters first and choosing from this list

From the gtk-rs documentation :

If it is not (filters is none), the dialog may choose to not make it available. (for the default filter).

Got a minimum example working, will open a PR to text/fix later.