-
Notifications
You must be signed in to change notification settings - Fork 259
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 45 port of Shell extension #1679
Conversation
- Migrate most code over to ESM. - Migrate prefs.js and extension.js to export needed objects. - Drop 'use strict' from ES Modules since it's unneeded as per JS spec. - Drop gettext and getIcon helpers on Extension. - Drop usages of ByteArray in favour of TextDecoder. - Drop `var` in favour of `export let`. - Add some FIXME comments.
Until the rest of the codebase is migrated to ESM, I don't see a better way other than duplicating code into .mjs files which is not much better
bac13e7
to
e432440
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done!
I didn't look too deep, since there's just a lot of maintenance to do everywhere in GSCOnnect, so just a few tweaks and I think this will be good to merge.
However, the metadata.json
will have to be updated to "45"
as the shell-version
.
52e52b5
to
ed3a1e3
Compare
ed3a1e3
to
19efb12
Compare
daded42
to
728e137
Compare
It seems I'm experiencing a major issue on Fedora 39 + GNOME 45, where my device is seemingly unable to receive information from GSConnect despite being connected. I can see current info about the phone in my GSConnect menu and receive notifications and everything else, but I can't see laptop battery info, media players, receive files from laptop, etc from the phone. These did work fine with the stable GNOME 44 version (and Valent w/ GNOME 45 port works fine too). I'm not sure what the root cause could be, seeing that the service and preferences are separate (and using the buttons there don't work either), and there are seemingly no relevant errors or stack traces in |
I would guess this is because GSConnect can now run on multiple ports, while an older instance may bind port 1716 and disallow re-use. Short answer: make sure you kill all existing instances of GSConnect and only the version you're working on is running. |
This doesn't seem to be the case, I only have a single GSConnect daemon running, and the issue persists after a system restart as well :/ |
Yeah, I can confirm this. I don't really know what's causing it, since backing up to |
It's not the Nothing outside Perhaps it's a change in gjs/gi libraries that affects something in the service, will try to look into it further :/ |
I don't believe so, I just pulled from |
Actually, seems to work for me now. Is nothing being printed in the log that's any help? I assume you're running with |
Well, this is really weird, I just restarted KDE Connect on my phone and the daemon works fine now lol FWIW yes, I was using |
Okay, cool, is there anything left to resolve? I think this is good enough to get some testing. GNOME 45 is released in a few days, so it would good to get some broader testing. |
Nope, everything is complete and ready to merge 👍 |
Thanks so much for working through this! |
Is it anything else still on outstanding list which holds new version released with GNOME 45 support? 🤔 |
Thank you to let me know 👍 |
var
in favour ofexport let
.__init__.js
, move its setup code to a function inutils.js
notification.js
Fixes #1665