I made a Qt application, let's call it "alpha," that opens and generates
.zip files. So basically, my files created by the app have the extension
.alpha but they are basically
.zip files. How do I associate
.alpha files with my "alpha" application? Currently, by default, the
.alpha files open with archive manager (because the system sees them as
I looked at many possible solutions, with no success. I have tried the below methods:
I created a
<?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> <mime-type type="application/alpha"> <comment>ALPHA File</comment> <glob pattern="*.alpha"/> </mime-type> </mime-info>
Now when I click
abc.alphafile, I get an error saying:
Could not display "abc.alpha". There is no application installed for "ALPHA File" files.
I edited the
/etc/mime.typesfile to include the following line:
I created the file
alpha.desktop- this works fine, as ALPHA is now shown in "open with other applications." However I still can't double click a
.alphafile to open it in my program.
How do I solve this? Thanks in advance.