connectionmanager2 icon indicating copy to clipboard operation
connectionmanager2 copied to clipboard

does not load in fedora 32, gnome 3.36

Open pieska opened this issue 4 years ago • 4 comments

gnome-shell[5291]: JS ERROR: Extension [email protected]: TypeError: theme is null init@/usr/share/gnome-shell/extensions/[email protected]/extension.js:356:5 _callExtensionInit@resource:///org/gnome/shell/ui/extensionSystem.js:406:50 loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:332:27 _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:568:18 collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:17 _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:547:19 _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:577:18 _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:608:18 init@resource:///org/gnome/shell/ui/extensionSystem.js:54:14 _initializeUI@resource:///org/gnome/shell/ui/main.js:254:22 start@resource:///org/gnome/shell/ui/main.js:143:5 @

:1:47

I can't fix it, i just can report it, hopefully someone knows how to fix it.

pieska avatar Apr 28 '20 20:04 pieska

by commenting this line out th eextension loads but the settings do not open and the icons look strange

function init(extensionMeta) {
    extensionPath = extensionMeta.path;

    let theme = imports.gi.Gtk.IconTheme.get_default();
//    theme.append_search_path(extensionPath);

}

pieska avatar Apr 28 '20 21:04 pieska

the settings manager does not start because of

gnome-shell[2992]: File "/usr/share/gnome-shell/extensions/[email protected]/connmgr.py", line 21, in gnome-shell[2992]: import gi gnome-shell[2992]: ImportError: No module named gi

there's no pygobject3, https://bugzilla.redhat.com/show_bug.cgi?id=1787247

pieska avatar Apr 28 '20 21:04 pieska

F32, python3 (quick & dirty) :

  • connmgr.py :
32c32
< from StringIO import StringIO
---
> from io import StringIO
705c705
<                 if profileName.decode('utf-8') == row[3]:
---
>                 if profileName == row[3]:
  • extension.js :
142,146c142
<             try {
<                 Util.trySpawnCommandLine('python2 ' + this._prefFile);
<             } catch (e) {
<                 Util.trySpawnCommandLine('python ' + this._prefFile);
<             }
---
>             Util.trySpawnCommandLine('python ' + this._prefFile);

didierm avatar May 12 '20 09:05 didierm

This helped for my setup with rhel8.2. Just make sure to configure:

alternatives --set python /usr/bin/python3

or use "python3" instead of "python"

lx183 avatar Oct 30 '20 10:10 lx183