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

Please update to Gnome 42 #201

Open
gilvbp opened this issue Feb 27, 2022 · 19 comments
Open

Please update to Gnome 42 #201

gilvbp opened this issue Feb 27, 2022 · 19 comments

Comments

@gilvbp
Copy link

gilvbp commented Feb 27, 2022

Please update to Gnome 42!

@gilvbp gilvbp changed the title Please update to Gnome 41 Please update to Gnome 42 Mar 1, 2022
@gilvbp
Copy link
Author

gilvbp commented Mar 1, 2022

Geting this error: Object 0x3d1e2d6288f8 is not a subclass of GObject_Object, it's a Object

@BloodyIron
Copy link

Is this going to get Gnome 42 support or what?

@konkor
Copy link
Owner

konkor commented Apr 7, 2022

I don't know what to say guys. I'm affected by war in Ukraine. Right now I'm at a temporary refugee camp in Lviv waiting for military recruiting agency's decision. My family is going to Canada. I don't have any laptop nearby to help you.

I wish that war will end soon and Russians will be punished for what they done and doing.

Slava Ukraine!

@BloodyIron
Copy link

I don't know what to say guys. I'm affected by war in Ukraine. Right now I'm at a temporary refugee camp in Lviv waiting for military recruiting agency's decision. My family is going to Canada. I don't have any laptop nearby to help you.

I wish that war will end soon and Russians will be punished for what they done and doing.

Slava Ukraine!

Hey that's totally understandable! Stay strong! I hope you make it! <3

@neclimdul
Copy link

Every day I find another awesome Ukrainian open source developer that built something I use daily. In its own way I think that says a lot about the sort of people Ukrainians are.

I also hope you and your family stay safe.

@vulpesfoxnik
Copy link

vulpesfoxnik commented Apr 8, 2022

Geting this error: Object 0x3d1e2d6288f8 is not a subclass of GObject_Object, it's a Object

It wounds like some class needs a GObject interfaced object instead of a pain Javascript object somewhere. Without the stack trace, knowing the line or function upset a a plain object is going to have to be trial and error.
I'm going to be looking into this, but first I need to get up and started to a suggested change. No promises.
I'm going to be using: https://gjs.guide/extensions/upgrading/gnome-shell-42.html#metadata-json

@vulpesfoxnik
Copy link

vulpesfoxnik commented Apr 8, 2022

JS ERROR: Extension cpufreq@konkor: TypeError: Object 0x33c051127940 is not a subclass of GObject_Object, it's a Object
_construct@resource:///org/gnome/gjs/modules/script/_legacy.js:536:31
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
newClass@resource:///org/gnome/gjs/modules/script/_legacy.js:115:21
Class@resource:///org/gnome/gjs/modules/script/_legacy.js:66:16
@/home/enforcer/.local/share/gnome-shell/extensions/cpufreq@konkor/extension.js:113:28
_callExtensionInit@resource:///org/gnome/shell/ui/extensionSystem.js:440:13
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:361:27
_loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:620:18
collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:28
_loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:595:19
_enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:626:18
_sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:646:14
init@resource:///org/gnome/shell/ui/extensionSystem.js:56:14
_initializeUI@resource:///org/gnome/shell/ui/main.js:293:22
start@resource:///org/gnome/shell/ui/main.js:170:5
@resource:///org/gnome/shell/ui/init.js:6:17

Ok I found the call stack of the error.
The API for Lang.Class must have changed.

@vulpesfoxnik
Copy link

I found this post of anther extension having a similar issue and it's patches. I'm going to give it a shot:
https://gitlab.manjaro.org/applications/pamac/-/issues/1252

@vulpesfoxnik
Copy link

Right it looks like it just needed to converted to a proper ES6 class. I've fixed it but I'm not quire sure how to upload a patch to github.
I've got it working locally.

@vulpesfoxnik
Copy link

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

@hworoshch
Copy link

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

I confirm it works on Gnome 42. Thank you very much! It is good that there are people who can find and fix the problem instead of winding snot on their fist.

@koroki
Copy link

koroki commented Apr 12, 2022

I confirm it works correctly!

Super thanks to @vulpesfoxnik

Also, Stay strong @konkor !!!

@els8791
Copy link

els8791 commented Apr 22, 2022

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

Hi
For me it works in Ubuntu 22.04, thanks @vulpesfoxnik
I had to change the metadata.json and add "42" + replace with your extension.js

[email protected]
Copy the downloaded Zip to ~/.local/share/gnome-shell/extensions and unpack the zip file.
Delete the zip file.

Log out / in from the running gnome session.
Open gnome extension manager and activate the cpufreq extension.
i hope it will help!

i wish @konkor all the best and STAY strong & save!

grafik

@els8791
Copy link

els8791 commented Apr 22, 2022 via email

@Eimis-dev
Copy link

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

Hi For me it works in Ubuntu 22.04, thanks @vulpesfoxnik I had to change the metadata.json and add "42" + replace with your extension.js

[email protected] Copy the downloaded Zip to ~/.local/share/gnome-shell/extensions and unpack the zip file. Delete the zip file.

Log out / in from the running gnome session. Open gnome extension manager and activate the cpufreq extension. i hope it will help!

i wish @konkor all the best and STAY strong & save!

grafik

Thank you! The extension does work on Ubuntu 22.04

@milhauzindahauz
Copy link

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

Hi For me it works in Ubuntu 22.04, thanks @vulpesfoxnik I had to change the metadata.json and add "42" + replace with your extension.js

[email protected] Copy the downloaded Zip to ~/.local/share/gnome-shell/extensions and unpack the zip file. Delete the zip file.

Log out / in from the running gnome session. Open gnome extension manager and activate the cpufreq extension. i hope it will help!

i wish @konkor all the best and STAY strong & save!

grafik

this didn't work for me on Fedora 36.

I made a built from #202 fix as follow in docs

./autogen.sh && make && make zip-file

Then I unzipped it and done the rest as follow in your instructions.

Thanks @hermes83 for the fix.

Cheers.

@ni-ka
Copy link

ni-ka commented May 21, 2022

On arch / manjaro I used "yay --editmenu -S gnome-shell-extension-cpufreq-git" and replaced the url in the pkg file with https://github.com/hermes83/cpufreq.git.

Good luck @konkor !

@pipes80-collab
Copy link

good work hermes83, it's work with gnome 42 on arch linux.
good luck @konkor

@ferstar
Copy link

ferstar commented Jun 10, 2022

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

Hi For me it works in Ubuntu 22.04, thanks @vulpesfoxnik I had to change the metadata.json and add "42" + replace with your extension.js

[email protected] Copy the downloaded Zip to ~/.local/share/gnome-shell/extensions and unpack the zip file. Delete the zip file.

Log out / in from the running gnome session. Open gnome extension manager and activate the cpufreq extension. i hope it will help!

i wish @konkor all the best and STAY strong & save!

grafik

Gnome itself support auto reloading by press "ALT + F2" and input r then press "Enter", and logout is not necessary.

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