gnome-shell-extension-fullscreen-notifications icon indicating copy to clipboard operation
gnome-shell-extension-fullscreen-notifications copied to clipboard

expected expression, got '='

Open pflanzenandi opened this issue 2 years ago • 2 comments

Error version 6: expected expression, got '='

PopOS 21.10 Gnome: 40.4.0

pflanzenandi avatar May 04 '22 15:05 pflanzenandi

I receive the same error message:

Fedora 35 Gnome: 41.6 - X11

May 09 10:10:20 gnome-shell[8364]: Archive:  /tmp/T8UUL1.shell-extension.zip
May 09 10:10:21 gnome-shell[8364]:   inflating: /home/user/.local/share/gnome-shell/extensions/[email protected]/extension.js
May 09 10:10:21 gnome-shell[8364]:  extracting: /home/user/.local/share/gnome-shell/extensions/[email protected]/metadata.json
May 09 10:10:21 gnome-shell[2199]: JS ERROR: Extension [email protected]: SyntaxError: expected expression, got '=' @ /home/user/.local/share/gnome-shell/extensions/[email protected]/extension.js:57

I'm getting the same error on Wayland.

Rudikza avatar May 09 '22 08:05 Rudikza

Got the error solved in a hacky way.

  1. Change directory to installed extensions

cd ~/.local/share/gnome-shell/extensions

  1. Change directory to fullscreen extension

cd [email protected]/

  1. Open extension.js in your preferred text editor

  2. Go to line 57

Change this:

changed ||= n.acknowledged;

To this:

changed || n.acknowledged;

  1. Save the file

  2. Log out and log back in

  3. The extension should be working now

GlennTatum avatar May 27 '22 01:05 GlennTatum