[opensuse-kde] Mimetype for windows *.exe files
![](https://seccdn.libravatar.org/avatar/cf5f66a01e46b1429922e332801f8ff9.jpg?s=120&d=mm&r=g)
Hi! I came across bug 625365 https://bugzilla.novell.com/show_bug.cgi?id=625365 which basically is wine is no executed if you click on exe files in dolphin or konqueror. You get a ksuseinstall window telling you that no application for application/x-ms-dos-executable is installed. The reason is simple wine does not provide this in its desktop file. So as asked for in the bug report I changed the desktop file to include this, however still the same happens. After this I found out that in systemsettings wine is still not registered for this mimetype. I also does not work for a new user. So my questions are: Why is this the case and how can this be fixed? Thanks in advance Christian -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/f88d7f788616dc0f54cd4bceeed1b3c9.jpg?s=120&d=mm&r=g)
bring up the wine file manager do it from there On 10/24/2010 12:54 PM, Christian Trippe wrote:
Hi!
I came across bug 625365 https://bugzilla.novell.com/show_bug.cgi?id=625365 which basically is wine is no executed if you click on exe files in dolphin or konqueror.
You get a ksuseinstall window telling you that no application for application/x-ms-dos-executable is installed. The reason is simple wine does not provide this in its desktop file. So as asked for in the bug report I changed the desktop file to include this, however still the same happens.
After this I found out that in systemsettings wine is still not registered for this mimetype. I also does not work for a new user.
So my questions are: Why is this the case and how can this be fixed?
Thanks in advance Christian
-- Hans Krueger hanskrueger007@roadrunner.com registered Linux user 289023 -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/cf5f66a01e46b1429922e332801f8ff9.jpg?s=120&d=mm&r=g)
Am Sonntag, 24. Oktober 2010, 21:10:02 schrieb Hans Krueger:
bring up the wine file manager do it from there
Thanks, for the answer. Sorry that I was not specific enough. But my question was more how to fix this directly on the packaging level. As assigning the mimetype to wine manually in systemsettings fixes the bug also when launching an exe file from dolphin. Christian
On 10/24/2010 12:54 PM, Christian Trippe wrote:
Hi!
I came across bug 625365 https://bugzilla.novell.com/show_bug.cgi?id=625365 which basically is wine is no executed if you click on exe files in dolphin or konqueror.
You get a ksuseinstall window telling you that no application for application/x-ms-dos-executable is installed. The reason is simple wine does not provide this in its desktop file. So as asked for in the bug report I changed the desktop file to include this, however still the same happens.
After this I found out that in systemsettings wine is still not registered for this mimetype. I also does not work for a new user.
So my questions are: Why is this the case and how can this be fixed?
Thanks in advance Christian
-- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/a6ffef5dde34bf02c36fb9fb70f3e397.jpg?s=120&d=mm&r=g)
On Sun, 24 Oct 2010, Christian Trippe wrote:
Hi!
I came across bug 625365 https://bugzilla.novell.com/show_bug.cgi?id=625365 which basically is wine is no executed if you click on exe files in dolphin or konqueror.
You get a ksuseinstall window telling you that no application for application/x-ms-dos-executable is installed. The reason is simple wine does not provide this in its desktop file. So as asked for in the bug report I changed the desktop file to include this, however still the same happens.
After this I found out that in systemsettings wine is still not registered for this mimetype. I also does not work for a new user.
So my questions are: Why is this the case and how can this be fixed?
Workaround: 1. locate your wine.desktop file ( e.g. /usr/share/applications/wine.desktop ) 2. make shure you have write-rights to the file, or do the next step as root. 3. open this file in a text-editor ( vim, gedit, kate, ... ) 4. look for a "MimeType=" entry, and either add to end (separated by a semicolon ";"), or insert as a line the mime-type you want. e.g.: "MimeType=application/x-ms-dos-executable" 5. save file. KDE buffers the desktop-files, so it could take a relogin to take effect. for more examples look at the Firefox file: /usr/share/applications/MozillaFirefox.desktop Hope this gives you the funtionality you want. Cheers, Michael Förster aka Yamaban out. -- "The word 'politics' is derived from the word 'poly', meaning 'many', and the word 'ticks', meaning 'blood sucking parasites'."
![](https://seccdn.libravatar.org/avatar/0006bf0ff51653f0a31c4a5ae55d3b0d.jpg?s=120&d=mm&r=g)
2010/10/24 Christian Trippe
Hi!
I came across bug 625365 https://bugzilla.novell.com/show_bug.cgi?id=625365 which basically is wine is no executed if you click on exe files in dolphin or konqueror.
You get a ksuseinstall window telling you that no application for application/x-ms-dos-executable is installed. The reason is simple wine does not provide this in its desktop file. So as asked for in the bug report I changed the desktop file to include this, however still the same happens.
After this I found out that in systemsettings wine is still not registered for this mimetype. I also does not work for a new user.
So my questions are: Why is this the case and how can this be fixed?
Some things: - There is no "application/x-msdos-program" MIME type in the FreeDesktop's Shared MIME Info Database (/usr/share/mime/packages/freedesktop.org.xml). This should be reported to upstream. - update-desktop-database "should" be run in the scriptlets, that will update /usr/share/applications/mimeinfo.cache. KDE doesn't uses it, but Vincent Untz will hunt you if you don't add it ;-) (it seems Gnome and others use it) - KDE automatically refreshes it's own cache. But you can force a rebuild with "kbuildsycoca4". No need to relogin. About the problem, it seems to be caused because of the "Hidden=true" entry in the .spec file. I don't remember the spec to say anything about this, and since update-desktop-database adds the entry to /usr/share/applications/mimeinfo.cache whatever "Hidden=true" is there or not I suppose this is a bug in KDE. I will reread the spec and the code to be sure. -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/0006bf0ff51653f0a31c4a5ae55d3b0d.jpg?s=120&d=mm&r=g)
2010/10/25 Cristian Morales Vega
About the problem, it seems to be caused because of the "Hidden=true" entry in the .spec file. I don't remember the spec to say anything about this, and since update-desktop-database adds the entry to /usr/share/applications/mimeinfo.cache whatever "Hidden=true" is there or not I suppose this is a bug in KDE. I will reread the spec and the code to be sure.
I was easy. It's another upstream's bug. It should not be "Hidden=true" but "NoDisplay=true". ...and I suppose update-desktop-database is also buggy since it ignored the Hidden entry when the spec says: "Hidden should have been called Deleted. It means the user deleted (at his level) something that was present (at an upper level, e.g. in the system dirs). It's strictly equivalent to the .desktop file not existing at all, as far as that user is concerned." -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/cf5f66a01e46b1429922e332801f8ff9.jpg?s=120&d=mm&r=g)
Am Montag, 25. Oktober 2010, 09:12:25 schrieb Cristian Morales Vega:
2010/10/25 Cristian Morales Vega
: About the problem, it seems to be caused because of the "Hidden=true" entry in the .spec file. I don't remember the spec to say anything about this, and since update-desktop-database adds the entry to /usr/share/applications/mimeinfo.cache whatever "Hidden=true" is there or not I suppose this is a bug in KDE. I will reread the spec and the code to be sure.
I was easy. It's another upstream's bug. It should not be "Hidden=true" but "NoDisplay=true".
...and I suppose update-desktop-database is also buggy since it ignored the Hidden entry when the spec says: "Hidden should have been called Deleted. It means the user deleted (at his level) something that was present (at an upper level, e.g. in the system dirs). It's strictly equivalent to the .desktop file not existing at all, as far as that user is concerned."
Thanks for the detailed explanations! (And in addition with "NoDisplay=true" instead of "Hidden=true" it works!) -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
participants (4)
-
Christian Trippe
-
Cristian Morales Vega
-
Hans Krueger
-
Michael Foerster