Skip to content

pine64-pinephone: change permissions of flashlight so PlaMo can toggle it

Administrator requested to merge fix/pinephone-flashlight-plamo into master

A hack shamelessly stolen from Manjaro. Plasma Mobile runs in the user session and needs direct access to the sys entries of the flashlight to be able to toggle it in the GUI.

I was looking into not using RUN+="" but doing it properly with MODE="0664", GROUP="video", but that does not seem to work for me.

Preferably Plasma Mobile handles these permissions with for example Polkit like Phosh seems to do it, but this will do for now.

CC @bshah

Merge request reports

Loading