"Error: Requiring ClutterGst, version 3.0: Requiring namespace 'Cogl' version '1.0', but '6' is already loaded' when using in a gnome shell extension.
I want to create a gnome shell extension to use video as background, and seems clutter-gst is the proper way to play video in Clutter, but when I use those gjs import code:
imports.gi.versions.ClutterGst = "3.0";
const {Clutter, ClutterGst, Meta, St} = imports.gi;
An error occurs:
JS ERROR: Extension videobackground@alynx.one: Error: Requiring ClutterGst, version 3.0: Requiring namespace 'Cogl' version '1.0', but '6' is already loaded
@/home/alynx/.local/share/gnome-shell/extensions/videobackground@alynx.one/videoBackground.js:3:41
@/home/alynx/.local/share/gnome-shell/extensions/videobackground@alynx.one/extension.js:22:25
_callExtensionInit@resource:///org/gnome/shell/ui/extensionSystem.js:420:13
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:345:27
_loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:590:18
collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:17
_loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:569:19
_enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:599:18
_sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:630:18
init@resource:///org/gnome/shell/ui/extensionSystem.js:55:14
_initializeUI@resource:///org/gnome/shell/ui/main.js:254:22
start@resource:///org/gnome/shell/ui/main.js:143:5
@<main>:1:47
I know that mutter has its own clutter and cogl and extension is loading from it, is there any way to solve this problem?