Skip to content

Run updates to remove "potentially unsafe" warning in Flathub #34

@pikurasa

Description

@pikurasa

https://flathub.org/apps/org.sugarlabs.MusicBlocks gives MB a "potentially unsafe" warning.

Here's more info, as discussed in Matrix: https://matrix.to/#/!fETQQkzsRKJLNYNuqN:matrix.org/$eK5DdLsXnmxBdkDdWu89GRI0jKR1cn-v7MLbBnGD9P0?via=matrix.org&via=srev.in

Devin's question:
What steps need to be done for https://flathub.org/apps/org.sugarlabs.MusicBlocks to remove the "potentially unsafe" warning?

Martin's response:
this permission needs to be removed... but, it's not that simple...

Music Blocks is a web app, and therefore, to work as a desktop app, it's using some framework.... This framework doesn't support the file chooser portal, which allows apps to access files.. and to workaround we punched a huge hole in the app sandbox to so it can access all home directory files instead...

org.sugarlabs.MusicBlocks/org.sugarlabs.MusicBlocks.yaml at master · flathub/org.sugarlabs.MusicBlocks - GitHub
Contribute to flathub/org.sugarlabs.MusicBlocks development by creating an account on GitHub.
We don't have this issue with GTK apps because GTK does support this file choser portal.. so we don't need that hole
maybe newer versions of electron (or whatever we used to run music blocks), do support portals now... but someone would have to look at it
another strategy could be to switch to another framework that does support portals, but not sure which one could be... we could also try just to embed it in a gtkwebkit wrapper... but, since it's webkit and not chrome or firefox, who knows if something could break in the app

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions