binfmts is not working correctly with wine and mono-runtime
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binfmt-support (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm in ubuntu-gnome raring.
If i don't install nothing, i can only open non-C# exe files with fileroller.
If i install wine i *keep* opening non-C# exe with fileroller (wine appears on the 'Open with' submenu but doesn't appear on 'other applications' dialog, even if the exe is marked executable).
This is a horrible bug, but different.
edit: i resolved this other bug, by editing the file-roller desktop file and removing the application/
If i install mono-runtime, then mono runtime suddenly is the default for both C# exe AND wine exe.
So the detection script for C# executables is not failing for non-C#, or is not running at all and the first is winning.
edit: actually... there are desktop files for both wine and mono-runtime too, and they both associate with application/
Looks like a major bug somewhere - why would the desktop files be checked first before something that can actually check for false positives?
This is the output of my current system installed binfmts supported packages:
update-binfmts --display
python3.3 (enabled):
package = python3.3
type = magic
offset = 0
magic = \x9e\x0c\x0d\x0a
mask =
interpreter = /usr/bin/python3.3
detector =
python2.7 (enabled):
package = python2.7
type = magic
offset = 0
magic = \x03\xf3\x0d\x0a
mask =
interpreter = /usr/bin/python2.7
detector =
cli (enabled):
package = mono-runtime
type = magic
offset = 0
magic = MZ
mask =
interpreter = /usr/bin/cli
detector = /usr/lib/
jar (enabled):
package = openjdk-7
type = magic
offset = 0
magic = PK\x03\x04
mask =
interpreter = /usr/bin/jexec
detector =
wine (enabled):
package = wine
type = magic
offset = 0
magic = MZ
mask =
interpreter = /usr/bin/wine
detector =
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: binfmt-support 2.0.13
ProcVersionSign
Uname: Linux 3.8.0-19-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Mon May 6 15:38:44 2013
InstallationDate: Installed on 2013-04-22 (14 days ago)
InstallationMedia: Ubuntu-GNOME 13.04 "Raring Ringtail" - Release amd64 (20130421)
MarkForUpload: True
SourcePackage: binfmt-support
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
description: | updated |
description: | updated |
summary: |
- binfmts is not working correctly with wine + binfmts is not working correctly with wine and mono-runtime |
description: | updated |
description: | updated |
Also this is the output of cat /usr/share/ applications/ defaults. list | grep file-roller x-ar=file- roller. desktop x-arj=file- roller. desktop x-bzip- compressed- tar=file- roller. desktop x-bzip= file-roller. desktop x-compressed- tar=file- roller. desktop x-compress= file-roller. desktop x-ear=file- roller. desktop x-gtar= file-roller. desktop x-gzip= file-roller. desktop x-jar=file- roller. desktop x-java- archive= file-roller. desktop x-lha=file- roller. desktop x-lhz=file- roller. desktop x-lzop= file-roller. desktop x-rar-compresse d=file- roller. desktop x-rar=file- roller. desktop x-rpm=file- roller. desktop x-tar=file- roller. desktop x-war=file- roller. desktop x-zip-compresse d=file- roller. desktop x-zip=file- roller. desktop x-zoo=file- roller. desktop zip=file- roller. desktop x-zip=file- roller. desktop
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
multipart/
Funny enough, there is no exe here so i don't know WTF is happening.