Gnome-Presentation-Mode icon indicating copy to clipboard operation
Gnome-Presentation-Mode copied to clipboard

No js module dbus found in search path

Open jwermuth opened this issue 7 years ago • 0 comments

System: Ubuntu 17.10 Gnome-shell 3.26.1

Prerequisites I have other gnome extensions installed, and I can install new ones, aka gnome extensions are working

Steps to reproduce

  • go to extensions.gnome.org
  • search for 'presentation mode'
  • select this extension
  • expected - the extension is activated
  • actual - an error occured loading the extension

Searching for root cause

  • open lg (looking glass)
  • select 'extensions' at the top right corner
  • find 'presentation mode' in the list
  • click show errors
  • observe "no module dbus found in search path"

Googling told me that the dbus has been deprecated since gnome ... something earlier than the version I have. I found some coding examples that will fix this particular error: replace

const DBus = imports.dbus;

with

const DBus = Gio.DBus;

and then the code runs a little further, before it bumps into the next error no js module usermenu found is search path Looking in the code, in metadata.js I see that the gnome-shell version is 3.2 (and mine is 3.26.1) I am guessing that the both errors is due to me using more recent version of gnome-shell, and that a possible fix would be to update it to the more recent version (or write code that handles both).

jwermuth avatar Dec 10 '17 07:12 jwermuth