/srv/irclogs.ubuntu.com/2019/01/30/#ubuntustudio-devel.txt

EickmeyerOvenWerks: That nasty dialog box for jackd came back when installing via -installer.05:46
EickmeyerExcept it never shows.05:46
EickmeyerLooks like pkexec can't keep environment variables it's set. Means we might have to change the .desktop file to run a pkexec instead of keeping it in the -installer script itself.06:02
OvenWerksEickmeyer: That was the way I started out, but there has been a push to do things "properly" and not run the GUI as root.07:41
OvenWerksEickmeyer: almost better to install as as if "no" had been selected and then fix it...07:42
OvenWerksEickmeyer: just have -installer check for the .disabled and pkexec mv to right name.07:45
OvenWerksthe thing is, even installing jackd right does not give a the same as installing studio experience anyway.07:46
OvenWerks-controls would have to be run first after reboot and then logout/in07:46
OvenWerksThe user has to be added to the audio group too.07:47
OvenWerksEickmeyer: on farther thought. If there is already a package you have been working on for audio/RT tweaks, It should get run after jack2 is installed and could include an install script.16:20
OvenWerksThat package would have jackd2 as a depend. This would force /etc/security/limits.d/audio.conf.disabled to be installed (if installed with -q) and then the script could do: if [ -f /etc/security/limits.d/audio.conf.disabled ]; then16:22
OvenWerks mv /etc/security/limits.d/audio.conf.disabled /etc/security/limits.d/audio.conf16:23
OvenWerks/usr/sbin/adduser `id -nu ${PKEXEC_UID}` audio16:23
OvenWerksEickmeyer: Farther thinking... We can't shouldn't really install a file that another package would have to write over. The /etc/security/limits.d/audio.conf16:47
OvenWerksthing is not something we should play with16:47
OvenWerksinstead we should add our own file /etc/security/limits.d/something.config16:48
OvenWerksI should probably look at the jack package installer first. It may not be upset at finding audio.conf already installed16:56
EickmeyerOvenWerks: In my experience, it won't even prompt if audio.conf is already there.16:57
OvenWerksIn which case we can just install it.16:57
EickmeyerIs audio.conf installed automatically with -controls?16:57
OvenWerksEickmeyer: no it takes a mouse click16:58
EickmeyerIf that's the case, making -controls a dependency of -installer would solve the problem.16:58
EickmeyerOh.16:58
EickmeyerCould we add it to -controls as part of the install script?16:58
OvenWerkshowever, if controls is a depend, install could call the fix part before it shows anything :)16:59
OvenWerksThe part that does the actual fixing is not a part of the -controls gui because it has to be run pkexec16:59
EickmeyerI see.17:00
OvenWerksso -install could pkexec /usr/sbin/ubuntustudio-system fix17:00
EickmeyerOvenWerks: Couldn't -controls have a postinstall script calling that?17:01
OvenWerksThat would install audio.conf as well as add the user to the audio group17:01
EickmeyerDoesn't need pkexec at that point.17:01
OvenWerksa post install could better just include the few lines needed directly17:03
EickmeyerSeems like that would make it even simpler than having to run -controls once.17:04
OvenWerksThe user does need to know they have to logout and back in to gain the permisions.17:04
OvenWerks-controls will tell them so if they run it...17:05
EickmeyerWell, then documentation, or if they fail to RTM then running -controls will get it across.17:06
OvenWerks-install could check for locked memory access and drop a dialog or message on the screen too.17:09
OvenWerksMy thought is that if the person installs -controls, they will run it and get the message that way, but if it is installed as a dep of -install then -install should tell them after installing all they ask for.17:11
EickmeyerNot a bad idea. Redundancy is good in this case.17:11
OvenWerksOk, so the plan is to add rt setup to -controls postinstall and then add a permision check to -install17:14
EickmeyerOvenWerks: Yes.17:14
EickmeyerOvenWerks: Make sure you do another pull for -installer. I just updated for -controls dependency, but I don't know how to write the dialog box.17:28
OvenWerksEickmeyer: I will look at it later... I will have to fix -controls first. Then -controls will need to be test installed as a dep by installing -install on a non-studio base17:30
OvenWerksI will probably have to do a git clone of install anyway.17:30
OvenWerksI haven't pulled sinse bzr17:31
OvenWerks(Bizzar!)17:31
* OvenWerks needs to have more coffee17:32
EickmeyerOvenWerks: I've got a non-studio base, so we'll use my system to test. It's a minimal Ubuntu install right now.17:34
* Eickmeyer also gets more coffee17:38
* OvenWerks realizes he has no idea how to write a .postinstall17:39
EickmeyerI'll get the .postinstall.17:42
OvenWerksIt just has to run /usr/sbin/ubuntustudio.system fix17:43
EickmeyerThis is weird. I've got it, but it's not letting me push.17:53
OvenWerksdid you pull rebase master etc?17:54
OvenWerksI generally keep two branches: master and a work branch17:54
OvenWerksmake the change in work.17:55
OvenWerksgit pull to master17:55
OvenWerkschange to work do git rebase master17:55
EickmeyerI had to reclone the thing.17:55
OvenWerksswitch to master 17:55
EickmeyerWhat I did worked.17:55
OvenWerksdo the local merge then push17:56
EickmeyerAll I did was clone, add the postinst, then push. Worked like a charm. It was asking me to sign-in, so must've been something weird with git.17:56
EickmeyerOvenWerks: Did you get the postinst?19:26
OvenWerksyes19:26
EickmeyerCool.19:26
OvenWerksdoes it work?19:26
EickmeyerI'll try it.19:31
OvenWerksit needs to be tried without installing jack first19:32
EickmeyerGrr.... it pulls jackd2 and asks to install /etc/security/limits.d/audio.conf, which I guess is okay considering this step would be installed either via command line, synaptic, software center, or otherwise.19:33
OvenWerksOh, Ya. I guess that would be true, jackd is a dep19:34
EickmeyerReally, that alone solves the problem: making -controls a dependency of -installer. ¯\_(ツ)_/¯19:36
OvenWerksSo long as the user logs out and back in.19:36
EickmeyerYes, so perhaps we just need to add that to -installer when it's done doing its thing.19:37
EickmeyerThat dialog you were talking about.19:37
OvenWerksYa, I will take a look soon.19:37
EickmeyerCool.19:37
EickmeyerOvenWerks: When the postinstall script runs, it adds user "root" to audio... not the user that called the sudo.19:39
OvenWerksSeems I don't have a copy of install anyway...19:39
OvenWerksEickmeyer: Ah, it uses sudo instead of pkexec inside?19:40
EickmeyerYes, because sudo is required to run apt or apt-get. It doesn't even use sudo since sudo was already called by whoever installed.19:41
OvenWerksthe user is based on a variable that pkexec passes19:42
EickmeyerYes. Unfortunately, one can't pkexec in a dpkg -i.19:42
EickmeyerSo, it might have to be something that -installer calls.19:43
OvenWerkssudo also passes the user in some manner19:43
EickmeyerNot a huge deal since it could be called as part of installing anything else.19:43
OvenWerksMaybe check for both, obviously $user returns "" so check if pkuser = "" then test for whatever sudo uses19:44
OvenWerksif one of them has a user in it, use that. Actually pkuser is userid so an empty variable is probably 0 or root19:45
OvenWerksI think this is fixable.19:46
EickmeyerRight. Sudo acts as root.19:46
EickmeyerHonestly, I don't even think we need the postinst if -controls is a dependency of -installer since it calls that dialog, which is what we're avoiding.19:46
EickmeyerTakes care of the dialog so that -installer doesn't have to.19:46
OvenWerkswe have to install jackd with quite don't ask any questions19:47
EickmeyerWell, if -controls is already installed before -installer runs, then jackd will be quiet since it will see that 1) it's already installed, and 2) audio.conf already exists.19:48
EickmeyerBasically, that yes/no will already be answered.19:48
EickmeyerAnd dpkg knows this.19:49
EickmeyerWe can then have installer run "pkexec ubuntustudio-system fix".19:50
EickmeyerTakes care of if they answered "no".19:50
OvenWerksOk19:51
EickmeyerI'm going to give it a whirl.19:52
OvenWerksinstaller should do that at startup19:52
EickmeyerI would agree, except what if the user doesn't want to use Studio for audio?19:53
EickmeyerActually, that's beside the point.19:54
EickmeyerIt might be bad to give the impression that the entire interface is running in root.19:54
OvenWerksI will also fix the bug in -controls, group will only be joined if user id > 99919:56
OvenWerks(interactive users start at 1000)19:56
EickmeyerOkay, just pushed the removal of the postinst.19:57
OvenWerksOh... this is the wish version... 20:02
Eickmeyerwish version?20:02
OvenWerkstk/tcl20:04
OvenWerksIt was never released when I did it.20:05
EickmeyerThis was the code I pulled from bzr.20:05
OvenWerksyes, I uploaded it, but noone wanted to do the release work.20:05
EickmeyerWell, it's about time we got that moving then.20:06
OvenWerksI think I decided that tk/tcl pulled in the fewest deps20:07
EickmeyerI saw that in the changelog, the switch to tk/tcl.20:08
OvenWerksand the old dep on zenity20:08
OvenWerkszenity is getting bit rot20:09
EickmeyerSo, you got the changes in, but nobody did the release work.20:09
OvenWerksIt used to be everything had zenity as there was both a qt and gnome version20:09
OvenWerksYa.20:10
EickmeyerWell, I see no reason why we can't move forward with it.20:10
OvenWerkstk can do a lot more than zenity. It used to be my gui of choice when I was developing on Linux for windows at work (15 - 20 years ago)20:13
OvenWerksEickmeyer: would you like to change installer to include the package list inside the script rather than on the commandline?20:14
OvenWerkswould you like to add uninstall? anything like that?20:15
EickmeyerOvenWerks: That's not a bad idea. After all, what else would we be using this script for?20:15
EickmeyerWell, we could add uninstall, I suppose. 20:16
EickmeyerAs long as it's not too much work.20:16
OvenWerksfor that matter it would be possible to switch to python like -controls if it is easier to maintain that way.20:16
EickmeyerIf we switch to Python, it might look better too since then we coulld use a toolkit.20:17
OvenWerksI originally thought it could be used as a generic install script GUI.20:17
OvenWerkseven in tk it could look a lot different20:20
OvenWerksArdour originally used tk20:20
EickmeyerWell, I think using it for a post-install "I want this set of packages that I didn't install at install time" combined with a "I want Ubuntu Studio on my {insert flavor} installation" solution. Doesn't need to be generic.20:20
OvenWerksNo, we have never used it genericly20:21
EickmeyerIf someone wants to use it for their own purpose, they can feel free to fork it.20:21
OvenWerksOh, maybe we did20:21
EickmeyerWhat else was it used for?20:22
OvenWerksWe used to have one desktop file for each sub menu20:23
EickmeyerOh, I see.20:23
EickmeyerMaybe we do just keep the command-line then.20:23
EickmeyerUnless we've done away with that.20:24
OvenWerksSo under audio production there was an install item that would install the audio meta or other applications we didn't ship but we liked to provide a way of installing.20:24
OvenWerksthere is only one desktop file in there now20:25
EickmeyerOkay, so we've done away with that then. No reason why we can't re-tool it.20:25
OvenWerkswe could do both, if no cl params use internal list20:26
OvenWerksIt does need someone to keep up with it20:26
EickmeyerI'd have no problem with that, since while I'm no coder it's easy for me to parse.20:27
OvenWerksMaybe we should add a python branch20:28
EickmeyerYeah. Maybe transition to Python with 19.10?20:29
OvenWerksThat way, Install can be released as is. And there is no pressure to get it done20:29
EickmeyerYeah.20:29
EickmeyerConfirmed: having -controls as a dep for -installer did the trick, installation is proceeding without a hitch (or a hang, as the case was).20:31
EickmeyerOvenWerks: ^20:31
OvenWerksCool20:42
* OvenWerks is realizing how painful it was to make something follow another process running as root.20:43
OvenWerksDoes the process bar still work right?20:44
EickmeyerYes, it still works.20:46
OvenWerkscool20:51
OvenWerksI think the package name needs to be in a bigger column20:53
EickmeyerYeah. "ubuntustudio-" takes quite a bit of room to begin with.20:54
OvenWerksYa, I don't set the list box width, what size should I try?21:00
Eickmeyer150px to start?21:01
OvenWerksin charactors21:01
EickmeyerOh. go for 25.21:02
OvenWerksgrub2-themes-ubuntustudio fits21:04
EickmeyerPerfect. Is that the longest one?21:05
OvenWerksMine only shows three becasue the rest are already installed21:06
OvenWerksI can push it though21:06
Eickmeyerplymouth-theme-ubuntustudio is longer.21:06
Eickmeyer(I might consolidate those two into "ubuntustudio-branding")21:06
OvenWerksSo make it 3021:07
Eickmeyerok21:07
OvenWerksI want to play with the grub one too at some time21:07
EickmeyerYeah. The grub one was fun. Forked the Ubuntu MATE grub theme, I think it looks good.21:07
EickmeyerI just need to get it up and sponsored since it's a new package.21:08
OvenWerksdoes the grub one include the 09-grub or is that still in something else?21:11
OvenWerksthe /etc/grub.d/21:11
OvenWerks09_lowlatency21:12
EickmeyerThat's something else.21:14
OvenWerksRight now 09_lowlatency just adds the lowlatency entry at the top then calls 10_linux21:14
EickmeyerYeah. that's in ubuntustudio-default-settings and ubuntustudio-lowlatency-settings.21:14
OvenWerksI would like to change it so that it replaces 10_linux21:14
Eickmeyergrub2-themes- only themes grub.21:14
OvenWerksAh.21:14
EickmeyerReplacing 10_linux would work if it wasn't directly installed by another package. That gets sticky with file conflicts.21:15
OvenWerksI think it would be nice to list the latest RT as default (if it exists) followed by the latest lowlatency and then the latest generic all with labels.21:16
EickmeyerThere's no RT in Ubuntu.21:16
EickmeyerWas too problematic to maintain iirc.21:16
OvenWerksMy thought was to have 09_lowlatency chmod -x 10_linux21:16
OvenWerksYa, there is no RT but if someone builds one, it should be auto default]21:17
EickmeyerOvenWerks: So, then one would have to do a postinst in -default-settings and -lowlatency-settings. 21:18
OvenWerksno, the 09 could do that on the fly every time it runs :)21:18
EickmeyerOhhhhh! I seee!21:19
EickmeyerIf that's the case, and it works, then have at it!21:19
EickmeyerI mean, are we being redundant by keeping 10 at +x?21:19
OvenWerksThe proper way would be to make a ubuntustudio-grub package that "replaces" one of the main grub packages21:19
OvenWerksbetter yet would be to push a change upstream21:20
EickmeyerMuh head a splode with that idea.21:20
OvenWerksIf I added a kernel_order=this,that,the_other to the user config file, the standard one could have generic at the front21:22
OvenWerksthen I could push it up stream21:22
OvenWerksI think there is a file that can be added by a distro to preset those variables and the user config comes after21:23
OvenWerksthe user config would not have that line so the default would be used21:23
OvenWerks This is quite a long way down my list of things to do...21:23
EickmeyerYeah, sounds great, but yeah, low priority, and getting that upstream in Debian would be painstaking.21:24
OvenWerksnot debian, grub21:24
OvenWerksdebian would then just take it...21:25
EickmeyerOh. You think the grub folks would want that?21:25
EickmeyerThat would affect every distro.21:25
OvenWerksnot really21:26
OvenWerksthey would be able to do that and for most people it would do nothing21:26
EickmeyerThat's true.21:26
OvenWerksThe default would be no change21:26
OvenWerksit would not be something that would make a new grub version, but it would be included in whatever the next version was21:27
EickmeyerRight.21:30
OvenWerksok thats odd, https://code.launchpad.net/~ubuntustudio-dev/ubuntustudio-installer/+git/ubuntustudio-installer says master was updated 4 hours ago.21:35
OvenWerksbut :https://git.launchpad.net/ubuntustudio-installer/commit/ shows later21:35
EickmeyerOvenWerks: Happened to me before. I had to delete my local repo, re-clone, pull (merge) with the commit comment "Launchpad git error" on the merge, then push.21:36
EickmeyerIt's annoying.21:37
EickmeyerI think it's a launchpad bug with its git hosting implementation.21:38
OvenWerksI think I will leave it over night and see if it updates on its own21:44
EickmeyerCool21:47

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