Giter VIP home page Giter VIP logo

Comments (5)

pirate avatar pirate commented on May 27, 2024

Yes it certainly can be, in fact I tried to make it as cross-platform as possible. The only mac-specific part currently is the osxnotifiactions.py logger.

The only major thing that needs to be done is to make a menubarlet for Linux that displays the output of menubar.sh, and passes click events as the text of the item clicked as an argument, e.g.
./menubar.sh "Settings...".

I personally don't use desktop linux for day-to-day work, so I don't have the time to invest in making a Linux version, but feel free to fork/submit a pr!

from security-growler.

nmaggioni avatar nmaggioni commented on May 27, 2024

Integration with Gnome's notifications is possible (as per Arch Wiki and Gnome's specs, or the relative bindings docs), and in fact I've achived it with the attached patch.

The scripts starts and produces notifications, but I noticed another important problem: parsing the system's logs. For example I use systemd, and reading the system's logs is only possible by piping the output of the journalctl command; it isn't possible to just read a file as the script is currently doing.

Anyway, this patch might be a good starting point for whoever wants to work at this port.

gnome_patch.txt

from security-growler.

pirate avatar pirate commented on May 27, 2024

Thanks for this patch!

I'd rather have the gnome notification be a seperate logger rather than overload osxnotifications.py. The platform detection can actually happen inside of settings.py, which then just sets the proper logger list on app launch.

As for the systemd problem, it's not an issue at all, we can simply add a new logger source and specify the output of popen('journalctl').readline() as the source of new lines instead of a file.

from security-growler.

nmaggioni avatar nmaggioni commented on May 27, 2024

Great suggestion, I didn't consider it. My Python-fu is rusty...

I'll look into this and eventually begin working on a proper PR, what do you reckon?

from security-growler.

pirate avatar pirate commented on May 27, 2024

Thanks! I probably wont have time to tackle full linux support myself in the near future, but if you submit a PR for a prototype, I'd be happy to help test/refactor/bugfix it.

Always happy to answer any questions as well, shoot an email if you want.

from security-growler.

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.