question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Contribution] `application/x-wxg` mimetype

See original GitHub issue

I wasn’t really sure where to put this file, but I wanted to contribute something I recently got working on aur package for this project:

wxglade-mime.xml

<?xml version="1.0" encoding="UTF-8"?>

<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/x-wxg">
        <comment>wxGlade design file</comment>
        <sub-class-of type="application/xml"/>
        <!-- workaround for Nautilus/Nemo
        See: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1816 -->
        <generic-icon name="application-x-wxg"/>
        <!-- end workaround -->
        <magic priority="60">
        	<match type="string" offset="0" value="&lt;?xml version=&quot;1.0&quot;?&gt;">
        		<match type="string" offset="0:256" value="&lt;!-- generated by wxGlade"/>
        	</match>
        </magic>
        <glob pattern="*.wxg"/>
    </mime-type>
</mime-info>

This allows for detection of .wxg files by most file managers and associates those files with wxglade.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
DietmarSchwertbergercommented, Apr 7, 2021

Thanks for the contribution. The file is in the repository now.

1reaction
DietmarSchwertbergercommented, Mar 30, 2021

This directory is probably not writable for a user, right? So wxglade can’t copy the file there. So I will just place it in the root directory of the repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common MIME types - HTTP - MDN Web Docs
Extension Kind of document MIME Type .aac AAC audio audio/aac .abw AbiWord document application/x‑abiword .arc Archive document (multiple files embedded) application/x‑freearc
Read more >
Is there a reason nautilus doesn't deduce the correct mime ...
I am running XFCE and this mimetype definition works in Thunar, ... <mime-type type="application/x-wxg"> <comment>wxGlade design ...
Read more >
The Complete List of MIME Types - SitePoint
Every MIME type, listed in one convenient table.
Read more >
What MIME type should I use for CSV? - Stack Overflow
Recently I discovered an explicit mimetype for Excel application/vnd.ms-excel. It was registered with IANA in '96. Note the concerns raised ...
Read more >
MIME Types - iupui
MIME Type Identification File Extension application/acad AutoCAD dwg application/arj compressed archive arj application/astound Astound asd, asn
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found