Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

No js module dbus found in search path #27

Open
jwermuth opened this issue Dec 10, 2017 · 0 comments
Open

No js module dbus found in search path #27

jwermuth opened this issue Dec 10, 2017 · 0 comments

Comments

@jwermuth
Copy link

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant