question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to load Pepper Flash plugin in an Electron app bundled in an AppImage

See original GitHub issue
  • Version: latest
  • Target: Linux (AppImage)

Please consider the following sample project: https://github.com/hokein/electron-sample-apps/tree/master/pepper-flash-plugin

I’ve cloned it, copied Flash plugin to app folder, completed the remaining steps to be able to build it with electron-builder and built it with AppImage target.

However, when I try to run the AppImage, it doesn’t load the plugin. Instead, it renders a message like “Unable to load the plugin”

Here is the output of my ldd libpepflashplayer.so command:

        linux-vdso.so.1 (0x00007ffe073bb000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fb3837f1000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fb3835e9000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fb383260000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fb382f5c000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fb382d45000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb382b27000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fb382785000)
        /lib64/ld-linux-x86-64.so.2 (0x00005640c7d3a000)

Should I include any of these libs as a dependency in my build process?

Related issue in AppImageKit project: https://github.com/probonopd/AppImageKit/issues/206

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lbssousacommented, Aug 4, 2016

I’ve got it! The correct path (for Linux) is ${__dirname}/../../, if installed via extraFiles, or ${__dirname}/../../resources, if installed via extraResources one.

I would like to suggest you to include these details in electron-builder documentation.

0reactions
EddieOnecommented, Sep 12, 2018

It’s not working for me. I have a folder named flash that has my plugins.

"extraResources": "${__dirname}/flash/*",

It doesn’t copy the files. Anyone know why?

Update: I didn’t realize extraResources was for the build section of package.json.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run pepper flash plugin inside my electron app
When I launch the application i see the next error: You must have Adobe Flash Player 11.3.300 or higher installed in your system....
Read more >
Using Pepper Flash Plugin · Electron documentation
To use the Pepper Flash plugin in Electron, you should manually specify the location of the Pepper Flash plugin and then enable it...
Read more >
Krita Appimage for cats - David Revoy
An Appimage is an application that can run anywhere, ... get the right libraries bundled and everything inside for the best user experience....
Read more >
Desktop version - Plop Linux
Install the Pepper Flash Plugin. The Pepper Flash Plugin is part of the Chrome browser. Download Chrome from the official website. Choose the...
Read more >
PulseAudio - ArchWiki
PulseEffects — Audio effects for PulseAudio applications. ... level of the daemon to see exactly why a specific module fails to load.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found