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

Unable to add WebApp #686

Open
edwardally opened this issue Nov 28, 2024 · 4 comments
Open

Unable to add WebApp #686

edwardally opened this issue Nov 28, 2024 · 4 comments

Comments

@edwardally
Copy link

What Happened?

Nothing happened when you click on "Install as Web App". Nothing show in "Manage Web Apps" too

Steps to Reproduce

  1. Click "Install as Web App"

Expected Behavior

Web App will be created and working properly

OS Version

8.x (Circe)

Session Type

Secure Session (Wayland)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

@llsaboya
Copy link

llsaboya commented Dec 4, 2024

Same here...

What Happened?

Nothing happened when you click on "Install as Web App". Nothing show in "Manage Web Apps" too

Steps to Reproduce

Click "Install as Web App"

Expected Behavior

Web App will be created and working properly

OS Version

8.x (Circe)

Session Type

Secure Session (Wayland)

Software Version

Latest release (I have run all updates)

Log Output

Failed to create GBM buffer of size 0x0: Argumento inválido

(epiphany:2): epiphany-WARNING **: 23:00:34.492: Failed to install web app, PrepareInstall() failed: GDBus.Error:org.freedesktop.portal.Error.InvalidArgument: Dynamic launcher icon failed validation

Hardware Info

No response

@ryonakano
Copy link

I can reproduce this on OS 8 but not on OS 7.1:

Screenshot From 2024-12-07 16-48-38

We ship the same version of Web (46.5) for OS 8 and 7.1, so I think this is due to Portal instead of Web itself.

@ryonakano ryonakano transferred this issue from elementary/browser Dec 7, 2024
@edwardally
Copy link
Author

I managed to fix the issue by creating a file in /etc/apparmor.d/bwrap based on information I found on the internet (can't remember the link) and it can now create the web app without any problems

abi <abi/4.0>,
include <tunables/global>

profile bwrap /usr/bin/bwrap flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/bwrap>
}

@ryonakano
Copy link

Thanks for the info. Installing apparmor-profiles and restarting the apparmor.service also fixes the issue for me. Maybe we just install it by default like we did for the live image in elementary/seeds#136?

@ryonakano ryonakano transferred this issue from elementary/portals Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants