Code Monkey home page Code Monkey logo

Comments (7)

RaphaelRochet avatar RaphaelRochet commented on July 17, 2024 1

Doing checks when screen is locked (meaning keep the extension active) I won't do.

But you found an edge case that require fixing nonetheless. Each time you lock your screen, the timer is restarted. So if you lock you screen often, then the only check you'll ever have is the first one on login. I will fix that.
Also, I see another thing (less annoying but still) : when you change the check interval in settings, the timer is reset.

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on July 17, 2024

That's a first ...

Do you have anything related to arch-update in logs ?
Maybe in journalctl -g "JS ERROR"

from arch-update.

Saroumane avatar Saroumane commented on July 17, 2024

When I open "Settings" window of the extension I have always :

systemd[59110]: Started dbus-:[email protected].
gjs[52233]: Unknown key gtk-modules in /home/user/.config/gtk-4.0/settings.ini 

I got rid of this warning by commenting the offending line. (Probably a remnant of KDE)

I also sometimes get (while using the Settings window) :

gnome-shell[335010]: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
                                               _promisify/proto[asyncFunc]@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:448:16
                                               openExtensionPrefs@resource:///org/gnome/shell/ui/extensionSystem.js:320:26
                                               openPreferences@resource:///org/gnome/shell/extensions/extension.js:27:26
                                               _openSettings@file:///home/user/.local/share/gnome-shell/extensions/arch-update@RaphaelRochet/extension.js:209:19
                                               activate@resource:///org/gnome/shell/ui/popupMenu.js:195:14
                                               _init/<@resource:///org/gnome/shell/ui/popupMenu.js:112:24
                                               @resource:///org/gnome/shell/ui/init.js:21:20

I have seen some people have
/bin/sh -c "/usr/bin/checkupdates"
instead of
/usr/bin/checkupdates

I'll try this, even if it should be the same result.

from arch-update.

Saroumane avatar Saroumane commented on July 17, 2024

It seems to work now.
I don't really understand why, because my SHELL variable is "/bin/bash" and /bin/sh is symlinked to bash ...

from arch-update.

Saroumane avatar Saroumane commented on July 17, 2024

False alert, it still does not work as expected.
I have "interval between check" on 30 min, and it looks like it worked once this afternoon, while I was using the PC.

Could it be that when the screen is locked, the autocheck is not performed ?
Can I enable some detailed logs somewhere ?

Edit : I just checked another gnome-extension (GSConnect) recently updated, and guess what :
image

So I'm assuming that "by default", gnome-extensions are not active while the screen is locked.
Ideally, I'd like to set "interval between check" to 1440min (24 hours), and I'd like that the check would be done even if my screen is locked.

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on July 17, 2024

Indeed. Extension is disabled when screen is locked.

from arch-update.

Saroumane avatar Saroumane commented on July 17, 2024

I assume you consider it's not a bug. But could it be a new feature ? (See my use case above)

from arch-update.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.