micheleg / dash-to-dock

A dock for the Gnome Shell. This extension moves the dash out of the overview transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops.
https://micheleg.github.io/dash-to-dock/
GNU General Public License v2.0
3.89k stars 461 forks source link

Dash to dock not working after updating gnome to 3.38.6 #1534

Open omargoda opened 3 years ago

omargoda commented 3 years ago

After updating to Gnome 3.38.6, dash to dock is not working and in the settings, I see the following error message:

The settings of extension dash-to-dock@micxgx.gmail.com had an error:

Error: Invalid parameter interfaces (element 0 was not a GType)

Stack trace:

_init/GObject.Object._classInit@resource:///org/gnome/gjs/modules/core/overrides/GObject.js:444:27
registerClass@resource:///org/gnome/gjs/modules/core/overrides/GObject.js:78:22
@/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/prefs.js:180:24
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:204:33
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
ghost commented 3 years ago

same here friend, still trying to figure it out

daniel-hartmann commented 3 years ago

There's this list of things it must be made to port to gnome shell 40: https://gjs.guide/extensions/upgrading/gnome-shell-40.html#contents

This diff make the extension work again, but still with errors:

diff --git a/docking.js b/docking.js
index a4d5b21..3534d4c 100644
--- a/docking.js
+++ b/docking.js
@@ -16,7 +16,13 @@ const Overview = imports.ui.overview;
 const OverviewControls = imports.ui.overviewControls;
 const PointerWatcher = imports.ui.pointerWatcher;
 const Signals = imports.signals;
-const SearchController = imports.ui.searchController;
+
+try {
+    const SearchController = imports.ui.searchController;
+} catch(err) {
+    log("SearchController doesn't exist");
+}
+
 const WorkspaceSwitcherPopup= imports.ui.workspaceSwitcherPopup;
 const Layout = imports.ui.layout;
 const LayoutManager = imports.ui.main.layoutManager;
daniel-hartmann commented 3 years ago

branch gnome-3.38 is working!

ghost commented 3 years ago

branch gnome-3.38 is working!

hello friend can you please make a little tutorial how to access the files and make the changes? i did not understand. thanks for reply

daniel-hartmann commented 3 years ago
git clone --branch gnome-3.38 https://github.com/micheleg/dash-to-dock.git
cd dash-to-dock
make
make install

ALT + F2: type 'r' and Enter. or Restart your computer.

ghost commented 3 years ago
git clone --branch gnome-3.38 https://github.com/micheleg/dash-to-dock.git
cd dash-to-dock
make
make install

ALT + F2: type 'r' and Enter. or Restart your computer.

woooow thank you so much sir, here, after using those suggested by you, I used the command to log out and restart gnome: /usr/bin/gnome-session-quit --no-prompt And all is working just fine, Thanks again friend

omargoda commented 3 years ago

@daniel-hartmann working like charm, thanks alot!

DucTran999 commented 3 years ago

@daniel-hartmann Thank you so much!

Hopeless commented 3 years ago

@daniel-hartmann Wow!Think you sooooooooooooooooo much!

oliver-wahome commented 2 years ago

I was having this issue on my kali linux 2021.3. I tried @daniel-hartmann solution but when I ran "make" I got the error shown below.

**

glib-compile-schemas ./schemas/ msgfmt -c po/ar.po -o po/ar.mo make: msgfmt: No such file or directory make: *** [Makefile:54: po/ar.mo] Error 127

**

After a lot of googling I managed to find another solution:

First install the "GNOME shell integration" to your chrome browser. Once installed click on the "GNOME shell integration" extension in chrome. It should take you to "extensions.gnome.org" Once there search for "dash-to-dock" extension by michelle_g Click on it and install the extension to your computer When its done installing, the favorites bar should appear. To verify that the extension has been installed go to the extensions application on your OS and under manually installed you should find the newly installed Dash to Dock extension.

HerbertInk commented 2 years ago
git clone --branch gnome-3.38 https://github.com/micheleg/dash-to-dock.git
cd dash-to-dock
make
make install

ALT + F2: type 'r' and Enter. or Restart your computer.

Thanks much...