Skip to content

Doesn't work on localized Unix environments #144

@zapek

Description

@zapek

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions