dash-to-dock
dash-to-dock copied to clipboard
Buggy after Latest Manjaro Updates
I had the extension installed and working properly.
After the latest updates, it works OK, but gives the following error on the extension app:
Error message is:
Main.panel._leftCorner is undefined
My Extensions (gnome-shell)
version is 42.1
/**
* Adjust Panel corners, remove this when 41 won't be supported anymore
*/
_adjustPanelCorners() {
if (!Main.panel._rightCorner || !Main.panel._leftCorner)
return;
The time has come 🤔🤔.
Just need to add check: "_rightCorner" in Main.panel
or smth
Same issue with Majaro update to Gnome 42.1
/** * Adjust Panel corners, remove this when 41 won't be supported anymore */ _adjustPanelCorners() { if (!Main.panel._rightCorner || !Main.panel._leftCorner) return;
The time has come thinkingthinking. Just need to add check:
"_rightCorner" in Main.panel
or smth
Where should I add this piece of code?
There is a file called 'docking.js', on my system it is in the path (/usr/share/gnome-shell/extensions/[email protected]/docking.js)
There is a method called like this '_adjustPanelCorners' (near the end of the code), just add the if statement.
Remember reboot or log out!
I am experiencing the same error warning in Extensions. I checked the Docking.js source and the above code change is already there...
`/**
- Adjust Panel corners, remove this when 41 won't be supported anymore */ _adjustPanelCorners() { if (!Main.panel._rightCorner || !Main.panel._leftCorner) return;`
Another issue I have is that the Extension Settings are constrained to a tiny scrollable area
There is a file called 'docking.js', on my system it is in the path (/usr/share/gnome-shell/extensions/[email protected]/docking.js)
There is a method called like this '_adjustPanelCorners' (near the end of the code), just add the if statement.
Remember reboot or log out!
I would say that the if statement is a bit incorrect, mostly because if one of them does not exist the code below will crash regardless, my suggestion is to slightly modify it and ensure consistency and ensure that both exists and not only one of them:
if (!Object.hasOwn(Main.panel, "_rightCorner") && !Object.hasOwn(Main.panel, "_leftCorner")) {
return;
} else if (!Main.panel._rightCorner && !Main.panel._leftCorner) {
return;
}