Giter Site home page Giter Site logo

Comments (3)

Shihira avatar Shihira commented on August 26, 2024

@andcoz Thank you so much for your report.

It seems to be a predictable behaviour. You can see core.js:139 to find out how it works. If you are eager for a work-around, you are recommended to try the more flexible type toggler and set command_on, command_off and detector based on your demand. And If you are willing to help me improve the extension, is there a properer grep regular expression that works for you? Maybe grep 'Active: activ[ei]' (i for "activing")?

from gnome-extension-quicktoggler.

Shihira avatar Shihira commented on August 26, 2024

@andcoz Some slight changes are made in the latest commit a608c62 . Does it meet your demand? More feedbacks are welcome.

from gnome-extension-quicktoggler.

andcoz avatar andcoz commented on August 26, 2024

I just pulled the latest version and It works like a charm. Thank you.

On my system, the Active: line of systemctl status changes as follow when i stop and then start again a service (that forks and exits):

   Active: active (exited) since Sun 2016-05-08 18:17:41 CEST; 56s ago
   Active: deactivating (stop) since Sun 2016-05-08 18:18:40 CEST; 3s ago
   Active: inactive (dead) since Sun 2016-05-08 18:18:48 CEST; 2s ago
   Active: activating (start) since Sun 2016-05-08 18:18:59 CEST; 2s ago
   Active: active (exited) since Sun 2016-05-08 18:19:07 CEST; 2s ago

So IMHO, the regex Active: activ[ei]should work well.

from gnome-extension-quicktoggler.

Related Issues (12)

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.