gnome-shell-TilixDropdown icon indicating copy to clipboard operation
gnome-shell-TilixDropdown copied to clipboard

ReferenceError: global is not defined

Open salim-b opened this issue 4 years ago • 13 comments

Opening the extension's settings throws an error:

ReferenceError: global is not defined

Stack trace:
  buildPrefsWidget@/home/salim/.local/share/gnome-shell/extensions/TilixDropdown@[email protected]/prefs.js:28:5
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:222:19
  start@resource:///org/gnome/gjs/modules/script/package.js:206:5
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

I'm on Ubuntu 20.04 (GNOME 3.36.3).

salim-b avatar May 08 '20 00:05 salim-b

Same in Fedora 32

zashme avatar May 19 '20 14:05 zashme

Same in PopOS 20.04 when trying to rebind/change shortcut key from tweaks ui.

The settings of extension TilixDropdown@[email protected] had an error:

ReferenceError: global is not defined

Stack trace:

buildPrefsWidget@/home/scott/.local/share/gnome-shell/extensions/TilixDropdown@[email protected]/prefs.js:28:5
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

`

blitz-io avatar May 25 '20 17:05 blitz-io

Verified keybind can be updated with dconf. Seems to be an issue with the Modal being drawn via gnome-tweaks.

blitz-io avatar May 25 '20 18:05 blitz-io

Hi, for the moment please try to install xorg-xinput on your distribution.

ivoarch avatar May 30 '20 13:05 ivoarch

Hi, for the moment please try to install xorg-xinput on your distribution.

The package xinput was already installed on my system. 😐

salim-b avatar May 30 '20 20:05 salim-b

Same here in Fedora 32 on wayland

thecodejedi avatar Jun 04 '20 19:06 thecodejedi

@gaganscott what is the path to change the keybind?

pfunk1978 avatar Jul 11 '20 20:07 pfunk1978

@pfunk1978 Using dconf-editor: /org/gnome/shell/extensions/tilix-dropdown/key.

blitz-io avatar Jul 11 '20 20:07 blitz-io

@gaganscott What do I change in dconf-editor?

dwilkinson167 avatar Jul 23 '20 16:07 dwilkinson167

I'm having the same issure. Please advise on how I can fix the "global not defined" issue

mdheller avatar Aug 16 '20 07:08 mdheller

Verified keybind can be updated with dconf. Seems to be an issue with the Modal being drawn via gnome-tweaks.

What the key folder? F10 it's not de best keybind

hcisilio avatar Oct 01 '20 21:10 hcisilio

@dwilkinson167 @mdheller @hcisilio There are two options until the author fixes the issue.

  1. Edit ~/.local/share/gnome-shell/extensions/TilixDropdown@[email protected]/prefs.js by removing global from each global.log line. Then restart your window manager via Alt + F2, type 'r' and press 'Enter'. The ui will then work through gnome-tweaks.

-or-

  1. Manually add an entry via dconf: dconf write /org/gnome/shell/extensions/tilix-dropdown/key "['F10']"

blitz-io avatar Oct 02 '20 01:10 blitz-io

It's worked! thanks!

hcisilio avatar Oct 02 '20 13:10 hcisilio