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

Provide some sort of action hint for mime/mediatypes #689

Open
sp1ritCS opened this issue Dec 25, 2024 · 0 comments
Open

Provide some sort of action hint for mime/mediatypes #689

sp1ritCS opened this issue Dec 25, 2024 · 0 comments

Comments

@sp1ritCS
Copy link

I'm in the process of writing a tool which produces an Android Manifest (mostly) based on an appstream upstream metadata component. On android you have to explicitly specify an action for which mimetypes should be handled. I specifically want to differentiate between applications that only have the ability to "view" a file of a specific mimetype and applications that can also "edit" those.

Functionality like this is also not limited to Android, as for example GLib/GIO has a hint parameter in its Gio.Application.open which might allow an application to determine what it is supposed to do.

sp1ritCS added a commit to sp1ritCS/gtk-android-builder that referenced this issue Dec 26, 2024
By adding actions="view|edit" to mime/mediatype pixiewood will also add
the EDIT action to the intent handler for that particular mimetype.

This is not specified in the appstream metadata format, but appstreamcli
doesn't check for parameters so it works for now.
I hope to have that behviour codified in appstream at some point.
See ximion/appstream#689
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

1 participant