A user reported the following issue: zapek/Xeres#347
So, to find the download directory, AppDirs does the following:
- get the XDG_DOWNLOAD_DIR env variable
- if not found, use $HOME/Downloads
Apparently, at least on Ubuntu, the XDG_DOWNLOAD_DIR env variable is never set, including in localized versions (for example the French version of Ubuntu uses $HOME/Téléchargements).
I don't know why they don't just set the environment variable. It seems you have to run the xdg-user-dir DOWNLOAD command then parse its output to get the location. It also happens on Raspian so it's probably not just Ubuntu.
A user reported the following issue: zapek/Xeres#347
So, to find the download directory, AppDirs does the following:
Apparently, at least on Ubuntu, the XDG_DOWNLOAD_DIR env variable is never set, including in localized versions (for example the French version of Ubuntu uses $HOME/Téléchargements).
I don't know why they don't just set the environment variable. It seems you have to run the
xdg-user-dir DOWNLOADcommand then parse its output to get the location. It also happens on Raspian so it's probably not just Ubuntu.