ivoarch / gnome-shell-TilixDropdown

A GNOME Shell extension to launch Tilix in Quake Mode .
GNU General Public License v2.0
32 stars 14 forks source link

ReferenceError: global is not defined #23

Open salim-b opened 4 years ago

salim-b commented 4 years ago

Opening the extension's settings throws an error:

ReferenceError: global is not defined

Stack trace:
  buildPrefsWidget@/home/salim/.local/share/gnome-shell/extensions/TilixDropdown@ivkuzev@gmail.com/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).

zashme commented 4 years ago

Same in Fedora 32

blitz-io commented 4 years ago

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

The settings of extension TilixDropdown@ivkuzev@gmail.com had an error:

ReferenceError: global is not defined

Stack trace:

buildPrefsWidget@/home/scott/.local/share/gnome-shell/extensions/TilixDropdown@ivkuzev@gmail.com/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 commented 4 years ago

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

ivoarch commented 4 years ago

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

salim-b commented 4 years ago

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

The package xinput was already installed on my system. 😐

thecodejedi commented 4 years ago

Same here in Fedora 32 on wayland

pfunk1978 commented 4 years ago

@gaganscott what is the path to change the keybind?

blitz-io commented 4 years ago

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

dwilkinson167 commented 4 years ago

@gaganscott What do I change in dconf-editor?

mdheller commented 4 years ago

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

hcisilio commented 4 years ago

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

blitz-io commented 4 years ago

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

  1. Edit ~/.local/share/gnome-shell/extensions/TilixDropdown@ivkuzev@gmail.com/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']"
hcisilio commented 4 years ago

It's worked! thanks!