zhrexl / DrawOnYourScreen2

GNU General Public License v3.0
214 stars 20 forks source link

class heritage OsdWindow.OsdWindowConstraint is not an object or null #10

Closed guidoenr closed 1 year ago

guidoenr commented 1 year ago

Hey guys, trying to install this extension in Kali Linux.

When i'm trying to enable the extension from the Extensions section, i get the following error message:

class heritage OsdWindow.OsdWindowConstraint is not an object or null

I tried both methods of instalation:

image

JaldeaR commented 1 year ago

Same problem in pop_os 22.04 LTS Added gnome version 42 to metadata.json when i tried to enable draw-on-your-screen2 after reloading i got the same result. class heritage OsdWindow.OsdWindowConstraint is not an object or null Screenshot from 2022-09-19 13-34-56

This is related to gnome 42.

https://gjs.guide/extensions/upgrading/gnome-shell-42.html#metadata-json

GNOME Shell UI OSD window no longer uses ui.osdWindow.OsdWindowConstraint and ui.osdWindow.OsdWindow.relayout().

Instead, ui.osdWindow.OsdWindow is vertically aligned at the end and .osd-window style class is using margin-bottom to move it up from the bottom of the screen.

zhrexl commented 1 year ago

The answer is Here . I'll be closing this issue as it is a duplicate of #6.

I'll update the extension on gnome extension soon but for now use the git version.

JaldeaR commented 1 year ago

Thanks @zhrexl i've updated other comments aswell to redirect towards the gnome42 version.

also added a coment at https://extensions.gnome.org/extension/4937/draw-on-you-screen-2/