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

Chrome native notifications are broken #2028

Closed
infokiller opened this issue Jul 5, 2018 · 3 comments
Closed

Chrome native notifications are broken #2028

infokiller opened this issue Jul 5, 2018 · 3 comments
Labels
question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested

Comments

@infokiller
Copy link

Chrome supports native Linux notifications for some time (article), and they worked for me before starting it with firejail.
Now it seems that Chrome uses its own notification system, even if I force it to use native Linux notifications.
After doing some testing, I think the issue is that chrome has nodbus in its profile (via chromium-common.profile).

Is there a way for me to disable the nodbus command using a local chrome profile (~/.config/firejail/chrome.profile)?
I know that I can rewrite the whole profile locally, but I would much rather have something like:

include /etc/firejail/google-chrome.profile
enable-dbus

Or something similar.

Thanks!

@Fred-Barclay
Copy link
Collaborator

Hi @infokiller Yes, you can create the file /etc/firejail/chrome.local with the line

ignore nodbus

and this should allow dbus access in the sandbox and (hopefully) native notifications for Chrome.
However, it's worthwhile noting that dbus can be used to escape the firejail sandbox, so hypothetically this lowers your security. You still have all the other features of firejail, but if the sandbox were successfully escaped then they might have little or no effect.

@Fred-Barclay Fred-Barclay added the question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested label Jul 5, 2018
@infokiller
Copy link
Author

Thanks a lot @Fred-Barclay!

@Fred-Barclay
Copy link
Collaborator

Fred-Barclay commented Jul 5, 2018

UPDATE: I'm sorry, the file name should be /etc/firejail/chromium-common.local that way no matter if you use chromium, or google-chrome stable, beta, or unstable, you'll get native notifications.

If you want Chrome-only, then /etc/firejail/google-chrome.local is the way to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants