GSConnect / gnome-shell-extension-gsconnect

KDE Connect implementation for GNOME

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requiring Gtk, version 3.0: , but '4.0' is already loaded

nikau6 opened this issue · comments

Describe the bug

Hi,
The extension stopped working today and displays Error: Requiring Gtk, version 3.0: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded
I was using it for 2 weeks and everything was alright. Yesterday I had a big update from Fedora, don't know if it can be related. Nothing else I can think about.

EDIT : Yesterday I installed too gtk4-devel I uninstall it thinking it could be the reason the extension broke but it didn't change anything.

GSConnect version 56
Installed from Extension Manager
GNOME Shell version 45
Linux distribution/release Fedora39

Screenshots

image

I found the solution. It was the ChatGPT-Gnome-Desktop-Extension extension that broke the GSConnect extension. After I uninstall it logout/login all went back to normal. It was this extension too that asked me to install gtk4-devel that I removed since.

EDIT : I just realized that the ChatGPT extension not only broke GSConnect but it broke too the apps-menugnome-shell-extensions which is now working again too.

This is the problem here:

https://github.com/HorrorPills/ChatGPT-Gnome-Desktop-Extension/blob/main/chatgpt-gnome-desktop%40chatgpt-gnome-desktop/extension.js#L1

imports.gi.versions.Gtk = '3.0';

This won't fly for many reasons 🙂

EDIT: Thanks for reporting though! I am going to mark this Can't Fix and close it, but feel free to direct the developer here or other users if there are questions.