Jinjinov / OpenHabitTracker

C# .NET 8 Blazor habit tracker application. Works on Web, Windows, Linux, Android, iOS and macOS.
https://openhabittracker.net
GNU General Public License v3.0
47 stars 3 forks source link

Can't choose filename/directory for exports #1

Open vinegraft opened 3 weeks ago

vinegraft commented 3 weeks ago

Expected Behavior

OHT opens a dialog allowing you to choose the name and directory of export file. This is what happens when I use the web app version. My browser always asks me where to download files (which lets me choose the name as well). Or I could turn that feature off but still control the directory by changing default download location.

Actual Behavior

OHT saves the export file to my ~/Downloads folder automatically with no choice for me to choose name or directory. I suspect this folder is used because I first ran the program from either ~/Downloads or ~/Downloads/OpenHabitTracker.Linux.1.0.3, I can't remember which.

Steps to Reproduce the Problem

Click Export JSON/TSV/YAML/Markdown in the Backup menu.

Specifications

Jinjinov commented 3 weeks ago

Thank you for reporting this!

Jinjinov commented 3 weeks ago

This is by design.

The only library that supports Blazor on Linux is the Photino.Blazor library.

There is an open issue for native Linux file dialog: https://github.com/tryphotino/photino.Blazor/issues/76

Since this issues is still open, my solution was to trigger "file download" - that is why the file is saved in the Downloads folder.

I have native file dialogs in MAUI, WinForms and WPF solutions - I will try to also add it to Photino when I have time.

Jinjinov commented 2 weeks ago

Can you try downloading version 1.0.7 from https://openhabittracker.net/ ?

Can you also try installing the snap version? https://snapcraft.io/openhabittracker