Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1222224

Summary: invalid MIME type and no default file association
Product: [Fedora] Fedora Reporter: RenĂ© Genz <liebundartig>
Component: wxMaximaAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jamatos, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: wxMaxima-15.04.0-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-26 03:25:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description René Genz 2015-05-16 17:01:21 UTC
Description of problem:
invalid MIME type specification in wxmaxima.desktop file due to typo
and
files from wxMaxima are opened with Archive Manager by default (see additional info paragraph)
(sorry for putting two problems in one ticket; they are closely related from my point of view)

Version-Release number of selected component (if applicable):
wxMaxima.x86_64  15.04.0-1.fc22

How reproducible:
always

Steps to Reproduce:
1. noticed the problem in terminal:
$ sudo update-desktop-database
Error in file "/usr/share/applications/wxmaxima.desktop": "text-x-wxmathml" is an invalid MIME type ("text-x-wxmathml" does not contain a subtype)
...
$ grep -i "mime" "/usr/share/applications/wxmaxima.desktop"
MimeType=text-x-wxmathml;text/x-wxmaxima-batch;

2. find out correct MIME type
2.1. in terminal: wxmaxima
2.2. in wxMaxima: file -- save as... -- test.wxmx
2.3. in terminal: file test.wxmx
test.wxmx: Zip data (MIME type "text/x-wxmathml"?)
2.4. in terminal: xdg-mime query default text/x-wxmathml
# no output created 

3. correct MIME type; in "/usr/share/applications/wxmaxima.desktop" replace 
text-x-wxmathml
with
text/x-wxmathml

4. verify
$ sudo update-desktop-database
$ xdg-mime query default text/x-wxmathml
wxmaxima.desktop


Actual results:
files with MIME type 'text/x-wxmathml' are opened with Archive Manager

Expected results:
files with MIME type 'text/x-wxmathml' should be opened with wxMaxima


Additional info:
There are additional problems in the GNOME environment!
$ file test.*
test.mac:  ASCII text
test.wxm:  ASCII text
test.wxmx: Zip data (MIME type "text/x-wxmathml"?)
test.zip:  Zip archive data, at least v2.0 to extract

In nautilus:
*.mac files are opened by gedit and presented with a text icon
*.wxm files are opened by wxMaxima and presented with a wxMaxima icon
*.wxmx files are opened by Archive Manager and presented with a wxMaxima icon

In order to fix the file extension association:
## for a user
to set the default application to wxMaxima in the GNOME GUI for *.wxmx files:
nautilus -- right mouse button click on file -- properties -- open with -- wxMaxima -- [Set as default]

## system wide
delete line 6 "    <sub-class-of type="application/zip"/>" from
/usr/share/mime/packages/x-wxmathml.xml
and update MIME database:
$ sudo update-mime-database /usr/share/mime

Comment 1 Rex Dieter 2015-05-16 17:45:17 UTC
%changelog
* Sat May 16 2015 Rex Dieter <rdieter> 15.04.0-2
- invalid MIME type and no default file association (#1222224)

Comment 2 Fedora Update System 2015-05-16 17:59:39 UTC
wxMaxima-15.04.0-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/wxMaxima-15.04.0-2.fc22

Comment 3 Fedora Update System 2015-05-17 20:33:29 UTC
Package wxMaxima-15.04.0-3.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing wxMaxima-15.04.0-3.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-8409/wxMaxima-15.04.0-3.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-05-26 03:25:49 UTC
wxMaxima-15.04.0-3.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.