Sorry, this is by design[1][2]: > snaps aren’t allowed to share content in directories like /tmp, /run/shm or /var/tmp. This is one reason why we use a mount namespace to the snap has a snap-specific /tmp directory
[1]: https://forum.snapcraft.io/t/tizonia-snap-apparmor-denied-suggestion-adjust-program-to-use-tmpdir-or-tmp/4951/2 [2]: https://forum.snapcraft.io/t/accessing-tmp-from-snaps/22384 ** Changed in: chromium-browser (Ubuntu) Status: New => Won't Fix -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to chromium-browser in Ubuntu. https://bugs.launchpad.net/bugs/1991563 Title: download.default_directory inside /tmp/snap.chromium Status in chromium-browser package in Ubuntu: Won't Fix Bug description: While using a selenium test, I found out the download files are not inside the download.default_directory the test is setting, but prefixed by /tmp/snap.chromium/ Python example: options = Options() prefs = { "download.default_directory": "/tmp" } options.add_experimental_option("prefs", prefs) browser = webdriver.Chrome(options=options) # click on a button that download a file. This file would be in /tmp/snap.chromium/tmp instead of just /tmp/ I'm on Ubuntu 22.04.1 LTS and I use Chromium 105.0.5195.125 (Official Build) snap (64-bit) Any idea how to relocate where the files are saved during a selenium test to be outside of /tmp/snap.chromium directory (which belongs to root user)? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1991563/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

