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

Add MimeType #412

Open
JakobDev opened this issue Jun 22, 2022 · 1 comment
Open

Add MimeType #412

JakobDev opened this issue Jun 22, 2022 · 1 comment

Comments

@JakobDev
Copy link
Contributor

JakobDev commented Jun 22, 2022

Since Appstream has it's own file format, it would be nice to have MimeType for it. Something like this:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
	<mime-type type="text/x-freedesktop-appstream">
		<comment>Appstream Files</comment>
		<glob pattern="*.appdata.xml"/>
		<glob pattern="*.metadata.xml"/>
	</mime-type>
</mime-info>

Not sure if this is the right place to suggest it.

@ximion
Copy link
Owner

ximion commented Aug 2, 2022

It is, but in the long run it may make sense to add something like this to the official Freedesktop MIME database. Would also be useful to identify the files not just by file extension but also by the contained XML if that is feasible.
I'll play around with it a bit when I find the time :-)
The nice thing this gives us is an easy way for desktop environments to assign a dedicated icon to these metadata files ;-)

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

No branches or pull requests

2 participants