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).
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1535666
Title:
Downloading files fails on non-English systems
Status in webbrowser-app package in Ubuntu:
Confirmed
Bug description:
On my desktop setup (French locale), the XDG download folder is named
"Téléchargements". The apparmor policy for webbrowser-app specifically
requests read/write access to $HOME/Downloads/, which works only on
systems where the downloads folder is named "Downloads".
When downloading a file in the browser, I’m seeing the following error
in the console:
Failed moving file from "/home/osomon/.local/share/ubuntu-download-
manager/webbrowser-app/Downloads/example.pdf" to
"/home/osomon/Téléchargements/example.pdf"
I wonder if apparmor exposes a way to specify XDG folders in policies.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1535666/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp