Skip to content
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

File contents erased without warning #118

Closed
stewlab opened this issue May 28, 2024 · 4 comments
Closed

File contents erased without warning #118

stewlab opened this issue May 28, 2024 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@stewlab
Copy link

stewlab commented May 28, 2024

I opened a markdown file externally using this app via the context menu in my file browser, and noticed that the file was automatically erased and written back to disk, with no way to recover. Strange bug.

Steps to reproduce:

  • navigate to a populated markdown file in Gnome Files
  • right click file > Open With.. > (select Folio)
  • notice that the file is now empty after being erased by Folio

I am not sure if Folio supports opening files externally, but it seems that it should at least fail gracefully with a warning or something similar. Additionally, I will take a look at the code to see if I can find the source of the issue.

OS:
Fedora Linux 40 (Silverblue) / Gnome 46

@toolstack
Copy link
Owner

I can't reproduce the issue here (Fedora 40 regular), can you re-confirm the behaviour?

@toolstack toolstack added the bug Something isn't working label May 28, 2024
@toolstack toolstack added this to the Next release milestone May 28, 2024
@toolstack
Copy link
Owner

If you do reconfirm, can you run Folio from the command line to see if it generates any message, aka:

```flatpak run com.toolstack.Folio --file Note.md``

@stewlab
Copy link
Author

stewlab commented May 29, 2024

This is no longer an issue for me. I reinstalled the the Folio flatpak (w/ a clean config) and cannot reproduce via the context menu or CLI, so this may have been a broken config or something similar. Thanks for looking into it!

@stewlab stewlab closed this as completed May 29, 2024
@toolstack
Copy link
Owner

Np.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants