#743237 shared-mime-info: Iceweasel prompts to save SWF files

Package:
shared-mime-info
Source:
shared-mime-info
Description:
FreeDesktop.org shared MIME database and spec
Submitter:
David Buckley
Date:
2015-09-20 08:24:04 UTC
Severity:
important
#743237#5
Date:
2014-03-31 18:26:13 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

A dist-upgrade

   * What was the outcome of this action?

Iceweasel prompts me to save SWF files. It knows they're SWF ("Shockwave
Flash file" according to the dialog), but no longer realises that it can
open them.

   * What outcome did you expect instead?

Iceweasel simply opens them. I can get this behaviour back by downgrading
back down to 1.0-1+b1.

Could alternatively be that iceweasel has the wrong MIME type for Flash,
but this seems unlikely -- web sites work fine, after all.

Flash plugin is 11.2 r202:

ii  flashplugin-nonfree  1:3.4 amd64   Adobe Flash Player - browser plugin


*** End of the template - remove these template lines ***

#743237#10
Date:
2014-09-07 09:08:08 UTC
From:
To:
I have the same bug with updated stable Debian.
#743237#15
Date:
2014-09-07 09:28:05 UTC
From:
To:
#743237#20
Date:
2014-09-07 10:01:48 UTC
From:
To:
The fix is here :

http://superuser.com/questions/726789/flash-files-swf-prompts-for-download-instead-of-opening

So you can add the following file :

nano /usr/share/mime/packages/freedesktop.org.z.add.x-shockwave-flash.swf
with this content :

<?xml version="1.0" encoding="UTF-8"?>
<mime-info
  xmlns="http://www.freedesktop.org/standards/shared-mime-info">]>
  <mime-type type="application/x-shockwave-flash">
    <comment>Shockwave Flash file</comment>
    <comment xml:lang="ar">ملف Shockwave Flash</comment>
    <comment xml:lang="be@latin">Fajł Shockwave Flash</comment>
    <comment xml:lang="bg">Файл — Shockwave Flash</comment>
    <comment xml:lang="ca">fitxer Shockwave Flash</comment>
    <comment xml:lang="cs">Soubor Shockwave Flash</comment>
    <comment xml:lang="da">Shockwave Flash-fil</comment>
    <comment xml:lang="de">Shockwave-Flash-Datei</comment>
    <comment xml:lang="el">αρχείο Shockwave Flash</comment>
    <comment xml:lang="en_GB">Shockwave Flash file</comment>
    <comment xml:lang="eo">dosiero de Shockwave Flash</comment>
    <comment xml:lang="es">archivo Shockwave Flash</comment>
    <comment xml:lang="eu">Shockwave Flash fitxategia</comment>
    <comment xml:lang="fi">Shockwave Flash -tiedosto</comment>
    <comment xml:lang="fo">Shockwave Flash fíla</comment>
    <comment xml:lang="fr">fichier Shockwave Flash</comment>
    <comment xml:lang="ga">comhad Shockwave Flash</comment>
    <comment xml:lang="gl">ficheiro sockwave Flash</comment>
    <comment xml:lang="he">קובץ של Shockwave Flash</comment>
    <comment xml:lang="hr">Shockwave Flash datoteka</comment>
    <comment xml:lang="hu">Shockwave Flash-fájl</comment>
    <comment xml:lang="id">Berkas Shockwave Flash</comment>
    <comment xml:lang="it">File Shockwave Flash</comment>
    <comment xml:lang="ja">Shockwave Flash ファイル</comment>
    <comment xml:lang="kk">Shockwave Flash файлы</comment>
    <comment xml:lang="ko">Shockwave 플래시 파일</comment>
    <comment xml:lang="lt">Shockwave Flash failas</comment>
    <comment xml:lang="lv">Shockwave Flash datne</comment>
    <comment xml:lang="ms">Fail Shockwave Flash</comment>
    <comment xml:lang="nb">Shockwave Flash-fil</comment>
    <comment xml:lang="nl">Shockwave Flash-bestand</comment>
    <comment xml:lang="nn">Shockwave Flash-fil</comment>
    <comment xml:lang="pl">Plik Shockwave Flash</comment>
    <comment xml:lang="pt">ficheiro Shockwave Flash</comment>
    <comment xml:lang="pt_BR">Arquivo Shockwave Flash</comment>
    <comment xml:lang="ro">Fișier Shockwave Flash</comment>
    <comment xml:lang="ru">файл Shockwave Flash</comment>
    <comment xml:lang="sk">Súbor Shockwave Flash</comment>
    <comment xml:lang="sl">Datoteka Shockwave Flash</comment>
    <comment xml:lang="sq">File Flash Shockwave</comment>
    <comment xml:lang="sr">Шоквејв Флеш датотека</comment>
    <comment xml:lang="sv">Shockwave Flash-fil</comment>
    <comment xml:lang="uk">файл Shockwave Flash</comment>
    <comment xml:lang="vi">Tập tin Flash Shockwave</comment>
    <comment xml:lang="zh_CN">Shockwave Flash 文件</comment>
    <comment xml:lang="zh_TW">Shockwave Flash 檔</comment>
    <alias type="application/x-shockwave-flash"/>
    <alias type="application/futuresplash"/>
    <generic-icon name="video-x-generic"/>
    <magic priority="50">
      <match value="FWS" type="string" offset="0"/>
      <match value="CWS" type="string" offset="0"/>
    </magic>
    <glob pattern="*.swf"/>
    <glob pattern="*.spl"/>
  </mime-type>

</mime-info>

Then
update-mime-database /usr/share/mime

Perhaps a more tiny workaround exists.

#743237#25
Date:
2015-09-20 08:20:46 UTC
From:
To:
This looks more like a bug in whatever software is working with the
mime database. SWF files have an alias mimetype with the old name
listed there, additional to the official
 application/vnd.adobe.flash.movie

Is this still a problem nowadays with newer versions of the relevant
software?