I have modified webbrowser-app’s apparmor profile to refer to "@{HOME}/@{XDG_DOWNLOAD_DIR}/" instead of "@{HOME}/Downloads/", but that alone is not enough, I’m still getting the same error on my system with a French locale.
Next I edited /etc/apparmor.d/tunables/xdg-user-dirs.d/site.local to set the value of @{XDG_DOWNLOAD_DIR} to "Téléchargements", reloaded the webbrowser-app profile, and that worked.
I’ll go ahead and submit a change to the browser policy to use @{XDG_DOWNLOAD_DIR}, that can’t hurt either way. However we’ll still be missing a mechanism that automatically sets the value of that variable based on the user’s locale (third bullet point in https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1061693/comments/1).
I have modified webbrowser-app’s apparmor profile to refer to "@{HOME} /@{XDG_ DOWNLOAD_ DIR}/" instead of "@{HOME} /Downloads/ ", but that alone is not enough, I’m still getting the same error on my system with a French locale.
Next I edited /etc/apparmor. d/tunables/ xdg-user- dirs.d/ site.local to set the value of @{XDG_DOWNLOAD_DIR} to "Téléchargements", reloaded the webbrowser-app profile, and that worked.
I’ll go ahead and submit a change to the browser policy to use @{XDG_DOWNLOAD_ DIR}, that can’t hurt either way. However we’ll still be missing a mechanism that automatically sets the value of that variable based on the user’s locale (third bullet point in https:/ /bugs.launchpad .net/ubuntu/ +source/ apparmor/ +bug/1061693/ comments/ 1).