<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 7, 2018 at 10:47 PM, Ongun Kanat <span dir="ltr"><<a href="mailto:ongun.kanat@gmail.com" target="_blank">ongun.kanat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello devs,<br>
<br>
I'm trying to contribute by fixing a small bug. I'm proficient with<br>
C++ and pretty much used to debug C++ programs with Qt Creator. I've<br>
managed to build full plasma desktop into a directory in my home using<br>
kdesrc-build. and set environment correctly Now I can launch latest<br>
git version of plasma.<br>
<br>
I'm trying to fix a bug in Powerdevil (as i guess):<br>
<a href="https://bugs.kde.org/show_bug.cgi?id=371915" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.<wbr>cgi?id=371915</a><br>
It looks like a calculation error is being made somewhere but I<br>
couldn't trigger any breakpoint in powerdevil executable. Moreover on<br>
git version of plasma it seems like powerdevil is not be able to get<br>
any sort of brightness signal at all and the kernel's/framebuffer's<br>
standard brightness functionality seems to be triggered. I'm making<br>
this guess since the brightness notification is not being shown. On my<br>
distro's (Arch, pretty vanilla) version of plasma both notification<br>
and powerdevil works and xev displays brightness buttons correctly.<br>
<br>
Wandering the installed files in my build directory, I realized kdesrc<br>
have installed dbus-1/system-services folder into the install<br>
directory in my home directory as expected. And there's a dbus service<br>
file called org.kde.powerdevil.<wbr>backlighthelper.service . I think this<br>
file doesn't get started since it's not in the real /usr/share/dbus-1<br>
folder. Instead the distro's version of it gets started which is<br>
incompatible and is not a part of my git build. Hence, no backlight<br>
signal has been gotten caught and transferred to org.kde.powerdevil<br>
service.<br>
<br>
So, my questions are:<br>
- Is my reasoning correct?<br></blockquote><div><br></div><div>Certainly the part about it loading the distro version.</div><div>No idea about whether it's compatiable or not.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- If it's, is there any clean way to force dbus to launch the files in<br>
my build directory instead of /usr. Using an environment variable<br>
would be nice<br></blockquote><div><br></div><div>Session bus, yes.</div><div><br></div><div>System bus, not really. The problem is because it's run as root it's locked down its paths for security. You can't just randomly source other places<br></div><div>You'll also have an equivalent problem with polkit actions and rules files which you need here.<br></div><div><br></div><div>You can modify system.conf to add an include dir, but you'll need to do that as root in your system supplied config file.</div><div><br></div><div>I haven't found a good solution for the polkit problem without just adding symlinks.<br></div></div><div class="gmail_quote"><br></div><div class="gmail_quote">David<br></div></div></div>