/srv/irclogs.ubuntu.com/2016/12/12/#ubuntustudio-devel.txt

* OvenWerks is not sure if he will be there for meeting this week.06:10
* cfhowlett knows he won't be there since y'all are meeting at 0400 local time :(06:11
OvenWerksOWCH06:11
OvenWerkswe have trouble in -controls land... there are some things that are system (must be changed as root) and some stuff that is userland (must be changed not just as the user, but as the user from the session) This means that the whole idea of pkexec ubuntustudio-controls is flawed and needs to be changed16:56
OvenWerksI found this out by doing a check if jack is running (it is in my session) and the result is "stopped"16:57
OvenWerksWhich is correct because root is not running jack. If root does run jack, the user can't create clients that see root's jack anyway.16:58
OvenWerkskrytarik: ^^^ this is likely the case for tablet setup as well.16:58
OvenWerksThe current idea is that the user should know when they are changing system settings and those should be by password. I am not sure this is true. Adding a user to the audio group or activating the audiolimits file are not really a problem.17:03
OvenWerksChanging boost or cpu governor should not be a problem either.17:03
OvenWerksNone of these things allow the user to input arbitrary text, rather they give the user a set of choices they can choose from.17:05
OvenWerksI am thinking to create another script in /usr/sbin that can be called to do system kinds of things. I can set it up in PK to just work with no password. It would be called with one parameter that could be a cpu governor name, boost_on/off or boot_gov/boot_boost. That leaves setting the group. I guess I could make it two parameters so we could do group user.17:11
OvenWerksif we wanted to keep the password part we could instead ask for the password when OK is selected.17:12
krytarikPretty sure I want a password for that, yes.17:13
OvenWerksIt would mean doing all changes at exit. This  could be ok... but it would be kind of nice to leave the utility open and switch back and forth between boost and not or performance and not rather than using a password each switch.17:14
OvenWerkskrytarik: which parts do you want password protected?17:14
krytarikWell, all system-wide ones, of course.17:15
krytarikOtherwise, one could fiddle with the script and make it execute all sorts of things.17:16
OvenWerkskrytarik: one has to have root acces to change the script17:16
krytarikTrue.17:16
OvenWerksall files in /usr are owned by root17:17
OvenWerksIf we were allowing the user to type in anything at all... password required.17:21
OvenWerksbut we don't for anythingn ayatem17:22
* OvenWerks has bad typing this morning...17:22
OvenWerksAnyway, we have to run a separate process for system. We can do it two ways:17:25
OvenWerks1) a script with parameters in the background17:25
OvenWerks2) a second GUI based script run with a password.17:26
OvenWerkskrytarik: option 1 is invisible to the user, option 2 means the user starts a second application for some things and closing the main window may not close the system... or the system window may make the main window inactive.17:29
krytarikOvenWerks: Or just use shell commands directly with pkexec?18:24
OvenWerkskrytarik: that would mean putting a password in two or three times after clicking ok18:24
OvenWerks(4 times actually)18:25
OvenWerkskrytarik: if you install one of the governor change applets (like the one Luke suggested) they do not ask you for a password ever to change governor. Why are we more sensitive?  Setting the group to audio and the limits file to enabled are just things that should have been done on install.18:28
krytarikOvenWerks: How does that do it then?18:30
OvenWerksMy personal feeling is that the jackd install is broken in that it does not set rt availablility.18:30
OvenWerksprobably with a line in policy kit18:31
OvenWerkssee /usr/share/polkit-1/actions18:34
OvenWerksthough it may be with a line in /etc/sudoers or a file in /etc/sudoers.d/18:34
OvenWerkskrytarik: I would like to remove the availablility to choose a user(s) to set to audio group and just invisibly when run check if things are installed right and fix otherwise :)18:36
OvenWerksSo make sure the file /etc/security/limits.d/audio.conf exists and drop the current user into the audio group... no questions asked. Maybe check if jack is installed first.18:38
OvenWerksIf we want the user to know something is happening (I guess really we do) then make it one check box "[] fix this user to run jack properly".18:39
OvenWerksMake the checkbox grey out if the task is already done and if the user has not yet logged out and back in... have a line just below in bold red that says reboot required or some such.18:43
OvenWerksIn fact I may be able to make the widget not visible unless it needs doing.18:45
OvenWerksI think I have figured it out.   ;)18:45
OvenWerksI wonder if we should check if a lowlatency kernel is installed... we can run without.18:46
krytarikWell, check is nice - but just display if it isn't, I guess.18:53
krytarikSimilar to what you've just done.18:54
krytarikAnd I guess the external shell script option without requiring a password is the most sensible then.18:56
OvenWerksRight, in any case the GUI will change again19:05

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!