Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnome 42 #50

Open
keithy999 opened this issue Apr 7, 2022 · 7 comments
Open

Gnome 42 #50

keithy999 opened this issue Apr 7, 2022 · 7 comments

Comments

@keithy999
Copy link

Can it be made to work somehow?

Thanks

@t00
Copy link

t00 commented Apr 16, 2022

Currently (version 34) it shows "Timer.Timer is not a constructor" error in the gnome extensions app

@neumann-d
Copy link
Owner

As I read so far, GNOME 42 uses Gtk4 instead of Gtk3. I will have a look for the necessary changes in the next time.

Everyone is welcome to submit a PR for GNOME 42 compatibility ;)

@t00
Copy link

t00 commented Apr 29, 2022

Do you have any advice how to set up development environment for gnome extensions?

@neumann-d
Copy link
Owner

You can use GNOME Boxes for installing a new distro with GNOME 42 in a virtual machine.

@t00
Copy link

t00 commented Apr 29, 2022

Once Gnome Boxes is set up, which editor (+extensions?) do you use? I am proficient in VS Code but setting up debugging etc is usually tricky - does gnome allow debugging (remotely, on vm?) extensions while running them?

@neumann-d
Copy link
Owner

I didn't find a way yet to really attach a debugger to the extension's code. For now, I only wrote some instructions how to see the logs and restart the extension: https://github.com/neumann-d/ShutdownTimer#development

@glerroo
Copy link

glerroo commented Aug 5, 2022

Class in external module must be declared with var instead of const, because class declared with let or const are not exported.

In timer.js line 19 must be chaged from

const Timer = GObject.registerClass({}, class Timer extends GObject.Object {

to

var Timer = GObject.registerClass({}, class Timer extends GObject.Object {

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

No branches or pull requests

4 participants