-
Notifications
You must be signed in to change notification settings - Fork 12
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
Bedtime crashes after re-login #35
Comments
Hello, I'm daily driving and Ubuntu 20.04 with GNOME Shell 3.36.9 and I don't see any issue on my side. I'm suspecting that on your side there is some interference with some other extensions... Do you use some Gnome Extensions that removes or moves the System Menu from the right side in Top Bar? |
Hi, Thanks for the response! I've got the following extensions activated: Openweather I use the default look of Ubuntu with a left side dock, and the top panel. |
Hmm, It doesn't look like you have some extensions that fiddles with the System Menu, this is a weird one... Just to be sure, you can try to disable some of them and see if that fixes the issue. I just installed all of them on my Ubuntu but Bedtime Mode works fine after log out and log in. Also, please paste here the output of this command ran in a terminal:
|
Later I'll feedback on deactivating all other extension, and results. Here you go with the output:
|
Ok, please do the test when you have only Bedtime Mode enabled and all the other extensions disabled. If you still experience the issue, you need to enable the Bedtime Mode extension logs by doing this in a terminal: sed "s/debug = false/debug = true/" -i ~/.local/share/gnome-shell/extensions/gnomebedtime@ionutbortis.gmail.com/config.js Log out and login in again and after you see the issue, open a terminal and run this: journalctl -o cat GNOME_SHELL_EXTENSION_UUID=gnomebedtime@ionutbortis.gmail.com Please copy the output of that command here. Thanks! |
Look, now it seems Ubuntu appindicators extension was the culprit. Thank you for the great suggestions! |
That's weird. I also have the "Ubuntu AppIndicators" System Extension installed and I'm not able to reproduce the issue when I have it turned on... It should't be any conflicts between Bedtime Mode and that extension. Later edit: It seems that the https://extensions.gnome.org/extension/615/appindicator-support/ extension I recommended as an alternative to Ubuntu's App Indicatiors has some issues on Ubuntu 20.04. |
Update: If you want to use https://extensions.gnome.org/extension/615/appindicator-support/ instead of problematic This is just temporary until they release a new version having the fix. After installation just run these commands in a terminal, log out and log in, and it should be working fine afterwards: search="domain.replaceAll(' ', '-');"
replace="domain.replaceAll ? domain.replaceAll(' ', '-') : domain.split(' ').join('-');"
sed "s/$search/$replace/" -i ~/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com/util.js |
Please open a terminal and run this command: journalctl -fo cat This will output all the new system logs including the extension logs. Go and enable/disable the Bedtime Mode extension and check if there are any errors when the Bedtime Mode logs appear. We should see something in the terminal that should resemble the error from Extension Manager. |
This log is from opening extensions menu, turning off than turning on bedtime when the error happens:
|
Can you provide a screenshot of you desktop where you cliked the system menu in top bar, right side? It's really weird what is happening on your system... It shouldn't behave that way 😅 |
Hmm, nothing wrong there. Tomorrow I will install it in a VM and try to reproduce it also there. |
Yeah exactly it is Ubuntu 22.04.1 LTS x86_64 & DE: GNOME 42.5 |
I managed to reproduce the issue, the OpenWeather extension configured to be displayed on the right side is causing Bedtime Mode to crash. There's also an issue that I need to address on the following days, my mechanism of finding the System Menu's position and adding the Bedtime Mode icon just before it, doesn't seem to work anymore on Gnome 42. Gnome Shell is notorious for breaking their backwards compatibility in APIs, so with each new release, extensions code could not work properly anymore... 😞 I will create a new release for these fixes but in the meantime, you can fix your local Bedtime Mode installs by running these in a terminal: sed "s/debug = true/debug = false/" -i ~/.local/share/gnome-shell/extensions/gnomebedtime@ionutbortis.gmail.com/config.js The above will turn off logging since it's not needed anymore. search="const aggregateMenuIndex = .*$"
replace="const aggregateMenuIndex = 0;"
sed "s/$search/$replace/" -i ~/.local/share/gnome-shell/extensions/gnomebedtime@ionutbortis.gmail.com/modules/Decorator.js The above should make the code stable and avoid the conflicts with OpenWeather. Please let me know if these are fixing your issues, thanks! 😃 |
Thanks for the feedback! Yeah, after running your code it actually fixes the issue completely! |
Thank you for submitting the issue and helping out in reproducing it! A new package was submitted to the Gnome Extensions Website and an update should come soon 🎉 |
@ionutbortis |
Hello there,
Extension crashes after logout, when logging in to my user every time.
I use it in Ubuntu 20.04 & 22.04, and the issue is the same.
The icon of the extension disappers from top bar, and also not working at all.
Anyone else experience this issue? Maybe some workaround without a system restart to get it working?
It's for sure a must have extension!
Thanks a lot for looking into that!
OS: Ubuntu 22.04.1 LTS
Kernel: 5.15.0-53-generic
DE: GNOME 42.5
WM: Mutter
OS: Ubuntu 20.04.5 LTS x86_64
Kernel: 5.15.0-53-generic
GNOME Shell 3.36.9
WM: Mutter
In extensions manager it says:
entry.get_child is not a function
It cannot be re-activated, for me only system reboot helps.
bedtime metadata.json:
{ "_generated": "Generated by SweetTooth, do not edit", "description": "Hey Gnome, it's bedtime! Converts to grayscale the entire Gnome workspace by using a smooth transition. Best to use during evening/night.\n\nThis behaviour is similar to Android's bedtime mode which converts the phone screen to grayscale. It should somewhat make your device less appealing and limit the usage of it before bedtime. On my side, at least, it still requires a fair amount of self control in order to make that happen.\n\nThe extension has a nice Settings UI where you can customize it to your liking:\n- Set an automatic schedule for turning on/off the Bedtime Mode\n- Add an On Demand button to Top Bar or System Menu to manually toggle the mode\n- Control the On Demand button visibility, appearance and position in Top Bar\n- Choose another color preset and intensity, if you prefer a different color scheme\n- Change color intensity on the fly by scrolling over the On Demand button in Top Bar\n\nMulti language support is also available, please check the GitHub page if you want to help with the translations. So far, the extension is fully translated to Spanish, Dutch, German, Romanian and English.\n\nIf you want to use a keyboard shortcut in order to toggle the Bedtime Mode then you can use this command for the shortcut:\n\nbash -c 'schema_id=org.gnome.shell.extensions.bedtime-mode; schema_dir=~/.local/share/gnome-shell/extensions/gnomebedtime@ionutbortis.gmail.com/schemas/; if [[ $(gsettings --schemadir $schema_dir get $schema_id bedtime-mode-active) == \"true\" ]]; then turn_on=false; else turn_on=true; fi; gsettings --schemadir $schema_dir set $schema_id bedtime-mode-active $turn_on;'\n", "gettext-domain": "bedtime-mode", "name": "Bedtime Mode", "settings-schema": "org.gnome.shell.extensions.bedtime-mode", "shell-version": [ "3.36", "3.38", "40", "41", "42" ], "url": "https://github.com/ionutbortis/gnome-bedtime-mode", "uuid": "gnomebedtime@ionutbortis.gmail.com", "version": 10 }
The text was updated successfully, but these errors were encountered: