Code Monkey home page Code Monkey logo

Comments (6)

ddevault avatar ddevault commented on May 28, 2024

It would be great

Why?

from brightnessctl.

xdbob avatar xdbob commented on May 28, 2024

In the case where I share my laptop with my friends both physically and over SSH. It is a nonsense to allow a user remotly control the the brightness since he probably doesn't even have the necessary permissions to output something to the screen.

My goal is to have a dynamic permission system a bit like with the uaccess tag of udev/systemd.

And since DBus is highly configurable, we could have users that always have access to the backlight (root for example, or let the machine administrator choose).

from brightnessctl.

ddevault avatar ddevault commented on May 28, 2024

But that'd require depending on dbus, yuck

from brightnessctl.

Hummer12007 avatar Hummer12007 commented on May 28, 2024

@xdbob I'm sure you can mess around with polkit to achieve this.
In addition, you can only add your local user to the necessary group.
It's not like you can prevent your friends from doing anything, if they can sudo.

from brightnessctl.

CameronNemo avatar CameronNemo commented on May 28, 2024

I have a polkit policy for something like this. I wrote it for light though. See the annotate key field for where the binary path goes.

from brightnessctl.

xdbob avatar xdbob commented on May 28, 2024

PolKit might do for a single seat configuration. I will look into it thanks for the feedbacks.

PS: The ideal situation would be ACLs support in the sysfs and let udev/systemd work out everything for us

from brightnessctl.

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.