Open Bug 1656713 Opened 2 months ago Updated 24 days ago

Files and directories won't open directly from Firefox Snap

Categories

(Core :: Widget: Gtk, defect, P3)

80 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jonty.68, Unassigned, NeedInfo)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0

Steps to reproduce:

  1. Save a file from the web
  2. Click the file or click "Open Containing Folder"

Actual results:

Nothing pops up

Expected results:

File/directory should open using their respecting applications, such as Gwenview and Dolphin in my case.

Component: Untriaged → File Handling
Summary: Firefox Snap won't open files nor the directory directly from Firefox → Files and directories won't open directly from Firefox Snap

:stransky, are you the right person to ask about these types of issues? Seems specific to Snap...

Component: File Handling → Widget: Gtk
Flags: needinfo?(stransky)
Product: Firefox → Core

(In reply to :Gijs (he/him) from comment #1)

:stransky, are you the right person to ask about these types of issues? Seems specific to Snap...

No, I don't use Ubuntu/Snap. I guess it's a kind of snap sandboxing issue here, better to ask someone from Ubuntu/Canonical. Better to move such Ubuntu specific but to Ubuntu BZ - https://bugs.launchpad.net/ubuntu/

Flags: needinfo?(stransky)
Priority: -- → P3

:jlorenzo, I'm told you might know about our Snap efforts and who to ping about this issue?

Flags: needinfo?(jlorenzo)

Thanks for filing this bug, jonty.68, and looping me in, :Gijs!

This bug looks very similar to bug 1652941. jonty.68, could you run snap run firefox and tell me if you any error message when you click the "Open Containing Folder" button?

Flags: needinfo?(jlorenzo) → needinfo?(jonty.68)
See Also: → 1652941

(In reply to Johan Lorenzo [:jlorenzo] from comment #4)

Thanks for filing this bug, jonty.68, and looping me in, :Gijs!

This bug looks very similar to bug 1652941. jonty.68, could you run snap run firefox and tell me if you any error message when you click the "Open Containing Folder" button?

In every instance I clicked "Open containing folder", it kept trying to open VS Code, and when I click an image, it kept trying to open Brave

$ snap run firefox
Gtk-Message: 04:35:47.790: Failed to load module "colorreload-gtk-module"
Gtk-Message: 04:35:47.790: Failed to load module "appmenu-gtk-module"
Sandbox: /tmp/.X11-unix/X0 is inaccessible (No such file or directory); can't isolate network namespace in content processes
env: ‘/snap/bin/code’: Permission denied
env: ‘/snap/bin/code’: Permission denied
env: ‘/snap/bin/code’: Permission denied
env: ‘/snap/bin/brave’: Permission denied
env: ‘/snap/bin/brave’: Permission denied
Flags: needinfo?(jonty.68)

That's odd! I tried to reproduce this issue. On my fresh Ubuntu 18.04, nautilus opens up when I click "Open containing folder". In my case, I downloaded a tar.bz2 file[1] and I was asked what application I wanted to use. I chose the archive manager and it worked fine.

I'm surprised it tried to open VS Code or Brave. That's not the default behavior. What happens when you open the same image from nautilus?

[1] It was actually Firefox from our official website.

Flags: needinfo?(jonty.68)

I have the same issue and I noticed that if I open a file/tar it works fine the problem seems to be related to opening with other applications. For example, if I click a torrent file to open with qBittorrent will only try to load and the stop, this also happens with other applications and also snap:// doesn't open ubuntu store, it does nothing.

I'm sorry, I don't manage to repro on a fresh ubuntu. Here's how I got the latest Firefox to open a snap:// link: https://drive.google.com/file/d/1PU6hWBFYBgp_WQe3yNVVl-jZz7HkFvZx/view

Can you both show me what happens on your side?

You need to log in before you can comment on or make changes to this bug.