Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGUI doesn't work with snap sandboxing #16488

Open
1 task
Axel-Naumann opened this issue Sep 20, 2024 · 1 comment
Open
1 task

WebGUI doesn't work with snap sandboxing #16488

Axel-Naumann opened this issue Sep 20, 2024 · 1 comment
Assignees
Labels

Comments

@Axel-Naumann
Copy link
Member

Check duplicate issues.

  • Checked for duplicates

Description

Hi,

starting the webgui (new TBrowser) opens a chromium window which complains:

Your file couldn’t be accessed
It may have been moved, edited, or deleted.
ERR_FILE_NOT_FOUND

I guess this corresponds to the following process:

axel       17508    3604  4 15:51 pts/0    00:00:01     /snap/chromium/2950/usr/lib/chromium-browser/chrome --password-store --disable-features=TFLiteLanguageDetectionEnabled --window-size=1200,700 --new-window --app=file:///tmp/root_start_t9pNYd.html

Note that this is a snap package; the browser might not be allowed to access files in /tmp as per https://forum.snapcraft.io/t/can-browsers-open-local-files/3016

(I can work around this, but I thought it'd still be worthwhile to report this.)

Cheers, Axel

Reproducer

new TBrowser with web gui.

ROOT version

master

Installation method

source

Operating system

Ubuntu 24.04

Additional context

No response

@linev
Copy link
Member

linev commented Sep 23, 2024

Hi Axel,

Can you try to add --allow-file-access-from-files to the command line?
It can be done with the following entry in .rootrc file:

WebGui.ChromeInteractive: $prog $geometry --new-window  --allow-file-access-from-files --app='$url'  &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants