Bug 2225973 - Plugin doesn't load when added to a scene
Summary: Plugin doesn't load when added to a scene
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: obs-studio-plugin-webkitgtk
Version: 38
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Neal Gompa
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-25 18:23 UTC by Diego Herrera
Modified: 2023-07-25 18:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.