Comment 5 for bug 1125514

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

I was hoping that this was a kind of test setup and not a real life screenshot :/

Having a short look at the code I have to admit that the logic of the dialog isn't very good. The case in which a file cannot be opened at all isn't handled. That is why you get this strange dialog.

Unfortunately we don't know the path of the file. Only the human undfriendly mime type, e.g audio/x-mp3. I already implemented some tricks to get a nice name of the requesting application. I could add a test if we cannot get a real world name for mime type, but what to do in this case? Should we point to an Internet site or support platform?

Getting the name of the distro is easy. I could add this to your code changes afterwards: platform.dist()[0]

You can use the test command in the sessioninstaller source code to trigger the dialog yourself:

In a terminal session run: ./session-installer
And in a second one: ./test --install-mime-types "audio/x-mp3 audio/x-ogg"