-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed segfault in light #6
Conversation
Buri
commented
Apr 26, 2014
- Minor tweaks and fixes
I think that a better way to go is to modify the permissions on the files that peter On 04/26/2014 01:37 PM, Jakub Buriánek wrote:
|
The install script now modifies permissions on the control files to give write I'm not sure just what the current best way to do this is. Perhaps some peter On 04/26/2014 01:37 PM, Jakub Buriánek wrote:
|
Changing file group will work well for single user computer, however it will break when running in multi user desktop. As short term solution its sufficient, but if we want to make this production ready code, we need to split all three aplications to two group: daemon that reads sensors and send events on bus/produces acpi events/etc. and control application, that will gather the events and make changes. Daemon can run as whatever user and modifiy permissions at will, since nothing else will really read output from sensors directly, however things like backlight are not reserved for theese drivers and therfore I think they should have default permissions unless there is absolute need to change them. |
Yes, the code should be split as you suggest. Permissions should be handled via something like policykit, so that the user peter On 04/27/2014 09:33 AM, Jakub Buriánek wrote:
|
Great, ill look to it in my spare time. :) |
Ok, I've fixed some issues in light, cleaned up the code and made separate folder for docs. My next focus will be to do the same for orientation and then ill make the two level split bridged via dbus. |
I've pulled these, and (finally) removed the binaries. peter On 05/02/2014 08:12 AM, Jakub Buriánek wrote:
|
Conflicts: sensors/Makefile sensors/orientation
Ok, so I have working draft of dbus connection in my local copy. Right now I'm polishing it out and maybe tomorrow I may push it to git. |
The directory structure should really be cleaned up at some point. I stupidly put the orientation program in the main directory, which made the drivers a subdirectory of that. I think that it would be better to put the orientation and light programs in separate subdirectories. What do you think? |
Ive made some progress on my branch regarding directory structure. It reflects sensor reader -> worker architecture. |
Hmm. I don't have any guidance here. peter On 05/07/2014 06:35 AM, Jakub Buriánek wrote:
|