mediathekview / MediathekView

Das Programm MediathekView durchsucht die Online-Mediatheken verschiedener Sender
https://mediathekview.de
GNU General Public License v3.0
863 stars 95 forks source link

Use standard download directory on Linux desktop #681

Closed swsnr closed 1 year ago

swsnr commented 1 year ago

Use xdg-user-dir to find the standard download directory on Unix desktops, see https://www.freedesktop.org/wiki/Software/xdg-user-dirs/.

If xdg-user-dir doesn't exist or doesn't return anything, fall back to ~/MediathekView as before.

swsnr commented 1 year ago

This makes MediathekView use the standard download directory on Unix desktops by default. It also improves permission management for the flatpak build (see https://github.com/flathub/de.mediathekview.MediathekView/ and #679 ), as flatpak can selectively allow applications access to specific standard directories within their sandbox.

/cc @alex1702

swsnr commented 1 year ago

@derreisende77 Thank you 🙏🏿