CleoMenezesJr / weather-oclock

Display the current weather inside the pill next to the clock.
GNU General Public License v3.0
67 stars 6 forks source link

Weather O'Clock Extension doesn't autostart - Ubuntu 22.04 #34

Closed GameGourmet closed 7 months ago

GameGourmet commented 7 months ago

Distro Name & Version

Ubuntu 22.04

GNOME Shell Version

42.9

Other Installed Extensions

AlphabeticalAppGrid@stuarthayhurst custom-hot-corners-extended@G-dH.github.com favourites-in-appgrid@harshadgavali.gitlab.org weatheroclock@CleoMenezesJr.github.io

Expected Behavior

Weahter-temperature should be shown on centre-top before/next to time/date when starting/rebooting Ubuntu.

Current Behavior

Weahter-temperature doesn't show up on centre-top before/next to time/date when starting/rebooting Ubuntu.

Detailed Description

Similiar and/or related to closed Topic: "Extension need to be manually disabled and enabled to work at startup"

  1. This extensions works fine in Ubuntu 22.04 with latest updates (at least in a fresh virtualbox installation), but gome-extension stuff and gnome-weather stuff needs to be installed too. That wasn't mentioned and can lead to frustrated users and bad reviews.

I suggest to explain howto install dependencies. At least that would be very user/beginner friendly.

  1. I would like to add some informations if this extensions (especially its auto-start-function) doesn't work under some specific conditions in Ubuntu 22.04. Because my another/real daily-use Ubuntu-Installation after long time of usage is a bit modified here and there to my likings, that could be the cause for my auto-start-problem with this extension I couldn't figure out the cause of the/my auto-start-problem for this extension in my case, but i found out a workarround.

Poblem:

Well, this extension didn't autostart with my "real" Ubuntu for me, but when i switched the extensions slider to off and on in the extension manager, then the temperature appeared next to my time/date at the centre-top of the screen, as it should. But this setting didn't survive reboots.

The autostart-function of a fresh reinstallation of this extension curiously survived one reboot o_O - only one. At second reboot or shutdown and new start of ubuntu, this extension didn't autostart anymore o_O (at least it's temperature display wasn't shown next to my time/date at the centre-top of the screen). In a fresh virtualbox-installation this problem doesn't appear.

  1. To find out if ones problem is similar to mine open the terminal run following commands: (This information could be part of an FAQ or something similiar in my opinion.)

gnome-extensions disable weatheroclock@CleoMenezesJr.github.io

gnome-extensions enable weatheroclock@CleoMenezesJr.github.io

  1. Solution/Workarround

If the temperature is now shown next to your date/time at the top of the screen, then the following workarround, to make this extension work with auto-start when the OS is booting, could work for you:

It's about creating you own gnome autostart-entries... with a tiny delay. Making this delay work could depend on users hardware and/or boot-speed. In doubt just increase the delay values (in seconds).

Navigate to ./config/autostart in your home directory. (Your filemanager must be configured to show hidden files)

Create a simple textfile, rename it to weatheroclock-disable.desktop Edit this file with an text editor and paste following lines in it:

[Desktop Entry] Type=Application Exec=gnome-extensions disable weatheroclock@CleoMenezesJr.github.io Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name=weatheroclock-disable X-GNOME-Autostart-Delay=2

And save it.

Create one more textfile, rename it to weatheroclock-enable.desktop Edit this file with an text editor and paste following lines in it:

[Desktop Entry] Type=Application Exec=gnome-extensions enable weatheroclock@CleoMenezesJr.github.io Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name=weatheroclock-enable X-GNOME-Autostart-Delay=3

And save it.

Reboot Ubuntu, now this extensions temperature should be shown everytime ubuntu starts. If it doesn't try to increase the values for X-GNOME-Autostart-Delay= and/or give the second file a a bit higher delay than the first file.

I'm no linux-master and maybe not all lines in the text files are necessary and i dont know, what every single line is good for, anyway for me it works satisfying and stable enough as a workarround.

(Other gnome extensions have no such autostart problems for me. I really like this extension.)

Edit: Replaced (missleading/confusing term) "centre" with "centre-top". In Windows 7 terms, i meant the centre of the task/tray-bar on the top of the screen :) ...

CleoMenezesJr commented 7 months ago

Hey, thanks for report it, but unfortunately, I don't maintain old versions, just the upstream GNOME version. I'm sorry.