That's unfortunate, but this is working as intended. The sandbox
provided to strictly-confined snaps (including chromium) doesn't allow
access to the system-wide /tmp, to prevent untrusted applications from
stealing data from others.

This was discussed at length there: https://forum.snapcraft.io/t
/sharing-files-via-tmp/1613.

** Changed in: chromium-browser (Ubuntu)
       Status: New => Invalid

-- 
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/1901065

Title:
  Chromium Browser (snap) Fails to Open Local Files from /tmp Directory

Status in chromium-browser package in Ubuntu:
  Invalid

Bug description:
  Ubuntu 20.04
  Linux Zweiblum 5.4.0-51-generic #56-Ubuntu SMP Mon Oct 5 14:28:49 UTC 2020 
x86_64 x86_64 x86_64 GNU/Linux

  $ snap info chromium
  name:      chromium
  summary:   Chromium web browser, open-source version of Chrome
  publisher: Canonical✓
  store-url: https://snapcraft.io/chromium
  contact:   
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bugs?field.tag=snap
  license:   unset
  description: |
    An open-source browser project that aims to build a safer, faster, and more 
stable way for all
    Internet users to experience the web.
  commands:
    - chromium.chromedriver
    - chromium
  snap-id:      XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R
  tracking:     latest/stable
  refresh-date: gestern um 18:33 CEST
  channels:
    latest/stable:    86.0.4240.111 2020-10-21 (1362) 170MB -
    latest/candidate: 86.0.4240.111 2020-10-21 (1362) 170MB -
    latest/beta:      87.0.4280.20  2020-10-16 (1357) 172MB -
    latest/edge:      88.0.4292.2   2020-10-16 (1358) 173MB -
  installed:          86.0.4240.111            (1362) 170MB -


  
  I use a Java application which creates temporary HTML files in /tmp and then 
uses

    java.awt.Desktop.getDesktop().browse("file:/tmp/tempfile_xxxx.html")

  to display this file in the system's default browser.

  This worked fine till the upgrade from Ubuntu 18.04 to Ubuntu 20.04,
  where it broke completely.

  Chromium is my default browser, but does not see the system /tmp dir,
  but only the one belonging to the snap.

  So it just outputs an "file not found" message after correctly being
  invoked by xdg-open. :-(

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1901065/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to