Bug 2225973

Summary: Plugin doesn't load when added to a scene
Product: [Fedora] Fedora Reporter: Diego Herrera <dherrera>
Component: obs-studio-plugin-webkitgtkAssignee: Neal Gompa <ngompa13>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 38CC: multimedia-sig, ngompa13
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Diego Herrera 2023-07-25 18:23:19 UTC
When adding a WebkitGtk component to the scene and configuring a URL, no result is shown on the Scene.

Reproducible: Always

Steps to Reproduce:
1. Open OBS
2. Add a WebkitGtk to the scene
3. Configure a valid url and a viewable size
Actual Results:  
Nothing loads, the component size is 0x0

Expected Results:  
The url loads and it's showed on the scene at the configured size.

If you run obs on a terminal, when you add the WebkitGTK component to the scene you get the following message

`error: Could not find obs-webkitgtk-helper application`

Comment 1 Diego Herrera 2023-07-25 18:28:11 UTC
Checking the code, this message is shown when the plugin isn't able to detect the location of the `obs-webkitgtk-helper` executable.

By default it first gets the path where the obs app is located (`/usr/bin`), then it looks for `obs-webkit-helper` on `../lib/obs-plugins/` and on the same path as the executable. If the file is not found on those locations, it fails with the error message described above [0]. In the case of this package, the `obs-webkit-helper` program is installed on `/usr/lib64/obs-plugins/`

[0] https://github.com/fzwoch/obs-webkitgtk/blob/master/obs-webkitgtk.c#L90-L113