Skip to content

Conversation

@rainxchzed
Copy link
Owner

This commit changes the download location for desktop platforms (Windows, macOS, Linux) from a temporary, app-specific directory to the standard user "Downloads" folder.

Key changes:

  • Introduced a userDownloadsDir() function in FileLocationsProvider to abstract the platform-specific path to the user's Downloads directory.
  • Implemented userDownloadsDir() in DesktopFileLocationsProvider to correctly resolve the Downloads path for Windows, macOS, and Linux (including XDG support).
  • Updated DesktopDownloader to use the new userDownloadsDir() for saving downloaded files.
  • Added a Snackbar notification on desktop to inform the user that the installer has been saved to their Downloads folder, as auto-installation is not performed.
  • The saveInstalledAppToDatabase logic is now skipped for desktop platforms, as the app is not "installed" in the same way as on Android.

This commit changes the download location for desktop platforms (Windows, macOS, Linux) from a temporary, app-specific directory to the standard user "Downloads" folder.

Key changes:
-   Introduced a `userDownloadsDir()` function in `FileLocationsProvider` to abstract the platform-specific path to the user's Downloads directory.
-   Implemented `userDownloadsDir()` in `DesktopFileLocationsProvider` to correctly resolve the Downloads path for Windows, macOS, and Linux (including XDG support).
-   Updated `DesktopDownloader` to use the new `userDownloadsDir()` for saving downloaded files.
-   Added a Snackbar notification on desktop to inform the user that the installer has been saved to their Downloads folder, as auto-installation is not performed.
-   The `saveInstalledAppToDatabase` logic is now skipped for desktop platforms, as the app is not "installed" in the same way as on Android.
@rainxchzed rainxchzed merged commit 316d9ae into main Dec 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants