X
Tap here to go to the mobile version of the site.

Support Forum

How to set file type .swf to open in shockwave plugin

Posted

Firefox 61 on Ubuntu. When I try to open .swf files, it tries to use the system's video display application, which cannot handle it (because it's not a video).

In Preferences->Applications there are 3 entries for SWF file type: application/x-shockwave-flash and application/futuresplash which are assigned to Shockwave Flash plugin, and application/vnd.adobe.flash.movie, which is assigned to Videos (and does not has an option for the plugin in its drop-down menu).

Somehow, all SWF files are assumed to be of the last type, which does not work. How can I assign all SWF files to the plugin?

Firefox 61 on Ubuntu. When I try to open .swf files, it tries to use the system's video display application, which cannot handle it (because it's not a video). In Preferences->Applications there are 3 entries for SWF file type: application/x-shockwave-flash and application/futuresplash which are assigned to Shockwave Flash plugin, and application/vnd.adobe.flash.movie, which is assigned to Videos (and does not has an option for the plugin in its drop-down menu). Somehow, all SWF files are assumed to be of the last type, which does not work. How can I assign all SWF files to the plugin?

Chosen solution

Found the answer here Basically, it requires changing the mime type in /usr/share/mime/packages/freedesktop.org.xml

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • Shockwave Flash 30.0 r0

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

More Information

FredMcD
  • Top 10 Contributor
4245 solutions 59390 answers

This may be your problem,

Firefox v52+ Releases disables all plugins except for Flash Why do Java, Silverlight, Adobe Acrobat and other plugins no longer work? {web link}

This may be your problem, Firefox v52+ Releases disables all plugins except for Flash [https://support.mozilla.org/en-US/kb/npapi-plugins Why do Java, Silverlight, Adobe Acrobat and other plugins no longer work?] {web link}
James
  • Moderator
1595 solutions 11242 answers

FredMcD said

This may be your problem,

Shockwave Flash is old name for Flash Player so no it s not related.

''FredMcD [[#answer-1138506|said]]'' <blockquote> This may be your problem, </blockquote> Shockwave Flash is old name for '''Flash Player''' so no it s not related.
cor-el
  • Top 10 Contributor
  • Moderator
17468 solutions 157853 answers

Helpful Reply

You can check the handlers.json file in the profile folder.

You can also check all involved MIME types in the OS.

  • xdg-mime query default <MIME type>
You can check the handlers.json file in the profile folder. You can also check all involved MIME types in the OS. * xdg-mime query default <MIME type>

Question owner

Thanks everyone. I should have said that I'm aware that newer versions of Firefox block the Shockwave plugin by default; I have already taken care of that. This plugin did work before, it's just that the mime type which is assigned to SWF file type does not use it.

xdg-mime query shows that indeed all .swf files are assigned to mime type application/vnd.adobe.flash.movie. It seems the trouble had started with installation of a new video application, which might have messed up file type.

So the question is really how to restore the association of .swf file extension with mime type application/x-shockwave-flash, and / or how to convince Firefox to use the plugin for all mime types which are associated with SWF files?

Thanks much.

Thanks everyone. I should have said that I'm aware that newer versions of Firefox block the Shockwave plugin by default; I have already taken care of that. This plugin did work before, it's just that the mime type which is assigned to SWF file type does not use it. ''xdg-mime query'' shows that indeed all .swf files are assigned to mime type ''application/vnd.adobe.flash.movie''. It seems the trouble had started with installation of a new video application, which might have messed up file type. So the question is really how to restore the association of .swf file extension with mime type ''application/x-shockwave-flash'', and / or how to convince Firefox to use the plugin for all mime types which are associated with SWF files? Thanks much.

Chosen Solution

Found the answer here Basically, it requires changing the mime type in /usr/share/mime/packages/freedesktop.org.xml

Found the answer [https://askubuntu.com/questions/7240/how-do-i-play-swf-files here] Basically, it requires changing the mime type in ''/usr/share/mime/packages/freedesktop.org.xml''