[Bug 192122] Re: wine wants to open shell scripts
** Changed in: shared-mime-info Importance: Unknown = Medium -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in ubuntu. https://bugs.launchpad.net/bugs/192122 Title: wine wants to open shell scripts -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
** Changed in: shared-mime-info Importance: Medium = Unknown -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in ubuntu. https://bugs.launchpad.net/bugs/192122 Title: wine wants to open shell scripts -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
** Changed in: wine (Ubuntu) Status: Fix Committed = Fix Released -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
** Changed in: wine Status: Confirmed = Fix Released -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
This will be fixed in Wine 1.1.21 (and thusly Wine 1.2), so it'll make its way into Karmic. ** Changed in: wine (Ubuntu) Status: In Progress = Fix Committed -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
Upstream says it's our bug then. I'll remove application/x-executable from our mime type in wine.desktop. ** Changed in: wine (Ubuntu) Status: Confirmed = In Progress ** Changed in: wine (Ubuntu) Assignee: (unassigned) = Scott Ritchie (scottritchie) -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
** Bug watch added: Wine Bugzilla #18307 http://bugs.winehq.org/show_bug.cgi?id=18307 ** Also affects: wine via http://bugs.winehq.org/show_bug.cgi?id=18307 Importance: Unknown Status: Unknown ** Changed in: shared-mime-info (Ubuntu) Status: Triaged = Invalid -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
** Changed in: wine Status: Unknown = Confirmed -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
If you remove the application/x-executable mime type from Wine, won't it be even harder to have EXE files opened with it ? -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
shared-mime-info should be properly detecting those as application/x-ms- dos-executable now; if it isn't that's a bug they're willing to fix. Right now the current magic is to just treat all *.exe files as ms-dos- executables, which I believe is the same way that Windows itself does. -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
** Changed in: shared-mime-info Status: Confirmed = Invalid -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
** Changed in: shared-mime-info (Ubuntu) Status: New = Triaged ** Also affects: shared-mime-info via https://bugs.freedesktop.org/show_bug.cgi?id=20735 Importance: Unknown Status: Unknown -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
** Changed in: shared-mime-info Status: Unknown = Confirmed -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is the registrant for shared-mime-info. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
It looks like no one else has opened a bug on bugs.freedesktop.org yet, so I created one here: http://bugs.freedesktop.org/show_bug.cgi?id=20735 Also, when I encountered this bug, the results were a bit more severe than described by initial reporter: Instead of simply logging wine: could not load ...: Bad EXE format for in the the X Session error log, when I accidentally opened a Ruby script with the default association (wine), my system froze up completely. I tried to move the mouse, but it wouldn't move. Within about 5-10 s of original click, I was dumped out to the Ubuntu login screen (all process apparently having been killed). (I don't see any messages in my ~/.xsession-errors but maybe that's because it gets recreated every time I log in?) I will try to reproduce it... -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
When I try opening the same script again with the default association (wine), nothing at all happens. I don't even see any new output at the bottom of ~/.xsession-errors (is that even the right file to be checking?)! So sorry I can't reproduce either behavior. -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
that's an upstream issue and should be sent to bugs.freedesktop.org ** Changed in: shared-mime-info (Ubuntu) Importance: Undecided = Low -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
that's an upstream issue and should be sent to bugs.freedesktop.org -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
Ok, I can now confirm this and I believe I know the source of the issue. The problem occurs with shell scripts, python scripts, ruby scripts, and possibly others. Basically, Wine is (correctly) associated with MIME type Application/x-executable, since this covers some .exe files (including non-Windows ones generated by Winelib). shared-mime-info classifies shell, python, and ruby scripts as sub-classes of application/x-executable, so anything that can open x-executables is used to open the scripts (in this case Wine). Since sub-type of executable is listed before sub-type of text file for scripts, handlers for executables (Wine) show up before handlers for text files, and thus Wine gets used to open it. One possible fix is to get rid of the sub-typing in shared-mime-info. It's unlikely anything that could open executables should also be opening python/ruby scripts in this way (in fact Wine is probably the only program associated with executables at all). Another possible workaround is to just switch text/application so that the default becomes the text editor handler, but this leaves the problem with Wine still being listed as a handler for something it isn't. ** Changed in: wine (Ubuntu) Importance: Undecided = Medium Status: Incomplete = Confirmed ** Also affects: shared-mime-info (Ubuntu) Importance: Undecided Status: New -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 192122] Re: wine wants to open shell scripts
Here's Wine's debian/wine.mime file: application/x-msdos-program; /usr/bin/wine '%s'; description=Windows Executable application/x-msdownload; /usr/bin/wine '%s'; description=Windows Executable application/exe; /usr/bin/wine '%s'; description=Windows Executable application/x-exe; /usr/bin/wine '%s'; description=Windows Executable application/dos-exe; /usr/bin/wine '%s'; description=Windows Executable vms/exe; /usr/bin/wine '%s'; description=Windows Executable application/x-winexe; /usr/bin/wine '%s'; description=Windows Executable application/msdos-windows; /usr/bin/wine '%s'; description=Windows Executable application/x-msdos-program; /usr/bin/wine '%s'; description=Windows Executable application/x-msi; /usr/bin/wine '%s'; description=Windows Installer archive I believe application/x-exe is equivalent to application/x-executable since there's no definition of x-exe in shared-mime-info, but I haven't tested switching the two. Here's the x-executable entry in shared-mime-info: mime-type type=application/x-executable _commentexecutable/_comment magic priority=40 match type=string value=\177ELF offset=0 match type=byte value=1 offset=5 match type=little16 value=2 offset=16/ /match /match match type=string value=\177ELF offset=0 match type=byte value=2 offset=5 match type=big16 value=2 offset=16/ /match /match match type=string value=MZ offset=0/ match type=little16 value=0x521c offset=0/ match type=host16 value=0420 offset=0/ match type=host16 value=0421 offset=0/ match type=little16 value=0603 offset=0/ /magic glob pattern=*.exe/ /mime-type Here's one of the relevant entries in shared-mime-info for ruby scripts (there are similar ones for python/shell scripts): mime-type type=application/x-ruby sub-class-of type=application/x-executable/ sub-class-of type=text/plain/ _commentRuby script/_comment magic match type=string value=/bin/env ruby offset=1:16/ match type=string value=/bin/ruby offset=1:16/ /magic glob pattern=*.rb/ /mime-type I'm going to attempt a patch by switching the sub-class-of x-executable to just duplicate the magic in x-executable and see if it works. At this rate, though, it looks like another shared-mime-info bug rather than a Wine problem. -- wine wants to open shell scripts https://bugs.launchpad.net/bugs/192122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs