Git Product home page Git Product logo

Comments (6)

fohrloop avatar fohrloop commented on July 17, 2024 3

I'm happy to announce that version 0.6.0 uses DBus by default! Thanks @NicoWeio for ideating and @Stehlampe2020 for supplying PR with implementation !

from wakepy.

fohrloop avatar fohrloop commented on July 17, 2024

Interesting! Thanks for reporting this @NicoWeio!

I usually myself use only Windows, so I should make some special setup to test this (dual-boot perhaps easiest?). Interested to hear what others think about this. Why do you think this would be not possible (or easy) to implement in current wakepy?

I'm also interested to hear if this need sudo privileges? The systemd approach needs sudo, and if this does not I find this very appealing.

from wakepy.

fohrloop avatar fohrloop commented on July 17, 2024

I also currently have close to zero understanding about D-Bus, so that's why possible other users' opinions are highly valued :)

from wakepy.

NicoWeio avatar NicoWeio commented on July 17, 2024

Dang, I forgot the best part: This works without superuser privileges! 🎉

In the current wakepy, I didn't see a mechanism for storing a cookie that the D-Bus interface requires for releasing the wakelock. But then again, I only had a glimpse at the code, and refactoring it probably isn't exactly hard.

As I mentioned earlier, neither do I have good knowledge about D-Bus, but if this works well for everyone, I can live with that. Dear fellow readers, please try it out! 🙃

PS: Since my semester break is about to end, it might take a while until I can work on this.

from wakepy.

fohrloop avatar fohrloop commented on July 17, 2024

This has finally got some speed, thanks to @Stehlampe2020 for the PR 22! I have merged a working version in master. It works without sudo priviledges using dbus. Before publishing a new version, I consider other alternative dbus packages than just the used dbus-python, from the perspective of what would be the easiest to install for the end users.

from wakepy.

Lampe2020 avatar Lampe2020 commented on July 17, 2024

I think the dbus-python package should be pre-installed on all distros featuring a Freedesktop-related desktop environment (tested to be so on Linux Mint with Cinnamon and Ubuntu with Unity as well as with GNOME).
If the package isn't available #22 will just fall back to the sudo-requiring solution you're familiar with.

from wakepy.

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.