[00:49] -lugito:#lubuntu-devel- [rMANUAL5b4a3078b48d: Add altenrate shortcuts for next previous picture] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL5b4a3078b48d [00:53] -lugito:#lubuntu-devel- [rMANUAL5ef64a96d22c: remove duplicated open line] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL5ef64a96d22c [01:01] -lugito:#lubuntu-devel- [rMANUALe95189cb159f: Restyle checkboxes and give print screen key highlighted] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALe95189cb159f [01:14] rbn10a was added by: rbn10a [01:15] Welcome! [01:17] -lugito:#lubuntu-devel- [rMANUALdeab60caa219: Add find options for ARK] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALdeab60caa219 [04:47] -lugito:#lubuntu-devel- [rPCMANFMQTARCHIVEbbb02d965ac2: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rPCMANFMQTARCHIVEbbb02d965ac2 [04:47] -lugito:#lubuntu-devel- [rPCMANFMQTARCHIVEe7fbf734ccfc: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rPCMANFMQTARCHIVEe7fbf734ccfc [04:47] -lugito:#lubuntu-devel- [rPCMANFMQTARCHIVE5f5277566d36: Import patches-applied version 0.14.1-1 to applied/debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rPCMANFMQTARCHIVE5f5277566d36 [04:55] -lugito:#lubuntu-devel- [rLXQTCONFIGARCHIVE5a243420a8ec: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rLXQTCONFIGARCHIVE5a243420a8ec [04:55] -lugito:#lubuntu-devel- [rLXQTCONFIGARCHIVEf3924064fb73: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTCONFIGARCHIVEf3924064fb73 [04:55] -lugito:#lubuntu-devel- [rLXQTCONFIGARCHIVEe0215a3129bc: Import patches-applied version 0.14.1-1 to applied/debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTCONFIGARCHIVEe0215a3129bc [05:22] -lugito:#lubuntu-devel- [rMANUALc049412af7fe: Add properties to ARK] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALc049412af7fe [05:30] -lugito:#lubuntu-devel- [rLXQTRUNNERARCHIVE960251246861: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rLXQTRUNNERARCHIVE960251246861 [05:30] -lugito:#lubuntu-devel- [rLXQTRUNNERARCHIVE5314edc68830: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTRUNNERARCHIVE5314edc68830 [05:30] -lugito:#lubuntu-devel- [rLXQTRUNNERARCHIVE58e8e471bcb9: Import patches-applied version 0.14.1-1 to applied/debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTRUNNERARCHIVE58e8e471bcb9 === guiverc_d is now known as guiverc [06:53] -lugito:#lubuntu-devel- [rLXQTSUDOARCHIVE6d7d4560ff85: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rLXQTSUDOARCHIVE6d7d4560ff85 [06:53] -lugito:#lubuntu-devel- [rLXQTSUDOARCHIVE495f2a87078b: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTSUDOARCHIVE495f2a87078b [06:53] -lugito:#lubuntu-devel- [rLXQTSUDOARCHIVE18a3c397c8a8: Import patches-applied version 0.14.1-1 to applied/debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTSUDOARCHIVE18a3c397c8a8 [07:06] -lugito:#lubuntu-devel- [rLXQTGLOBALKEYSARCHIVEeffc72500155: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rLXQTGLOBALKEYSARCHIVEeffc72500155 [07:06] -lugito:#lubuntu-devel- [rLXQTGLOBALKEYSARCHIVEca546166a453: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTGLOBALKEYSARCHIVEca546166a453 [07:06] -lugito:#lubuntu-devel- [rLXQTGLOBALKEYSARCHIVE14bd68fd66eb: Import patches-applied version 0.14.1-1 to applied/debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTGLOBALKEYSARCHIVE14bd68fd66eb [10:32] AlexanderS4 was added by: AlexanderS4 [11:04] -lugito:#lubuntu-devel- [rFEATHERPADARCHIVE3b40ec4269e0: DSC file for 0.9.4-1] Diffusion committed: https://phab.lubuntu.me/rFEATHERPADARCHIVE3b40ec4269e0 [11:04] -lugito:#lubuntu-devel- [rFEATHERPADARCHIVE6a72768353a0: Import patches-unapplied version 0.9.4-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rFEATHERPADARCHIVE6a72768353a0 [11:04] -lugito:#lubuntu-devel- [rFEATHERPADARCHIVEd5f11ae8400a: Import patches-applied version 0.9.4-1 to applied/debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rFEATHERPADARCHIVEd5f11ae8400a [13:12] Christian Godínez was added by: Christian Godínez [15:29] Fwd from popeydc: @tsimonq2 this crossed my desk today... features lubuntu on an atom netbook. https://www.youtube.com/watch?v=H3QOkne3IsE [15:30] Welcome @AlexanderS4 and Christian Godínez [18:31] -lugito:#lubuntu-devel- [rMANUAL16d9b7a8f837: Start ARK prefrences] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL16d9b7a8f837 [19:24] anyone here knows how to hablde python pty library? [19:30] wxl: DMB just approved packageset delegation for lubuntu to ~lubuntu-dev. [19:37] @HMollerCl I have a little experience with it. What are you after? Python 2/3? [19:38] Hi docEbrown I'm after connecting aptdaemon to a pty so I can read the installation progress. [19:38] I'm not sure how to make it work [19:39] gnome uses vte.pty [19:39] at the begging I want to open a qterminal (or any other terminal) so I can see what's happening [19:40] this is the "documentation I have": ... def set_terminal(self, ttyname, reply_handler=None, error_handler=None): ... """Allow to set a controlling terminal for the underlying dpkg call. ... See the source code of gtk3widgets.AptTerminal or console.ConsoleClient ... as example. ... >>> master, slav [19:40] e = pty.openpty() ... >>> transaction.set_terminal(os.ttyname(slave)) [19:41] but I think I need to open a terminal [19:42] so I've open a qterminal like this, it opens, but nothing happens o it: ... proc = subprocess.Popen(['qterminal'], ... stdin=slave, ... stdout=slave, ... stderr=slave) [19:42] So openpty opens a terminal pair and master and slave are file descriptors for the pair [19:43] Ahh OK [19:45] Just to check so do you want to read the stdout of the qterminal sub process you just opened? [19:45] file redirection? [19:46] @docEbrown [Just to check so do you want to read the stdout of the qterminal sub process you …], theother way around. I want that the process write in qterminal. [19:47] aptdaemon is a python library for performing packages action. [19:47] is what ubuntu use. [19:48] when you do upgrades via gui, the embedded terminal comunicates through this. [19:48] Yep yep excellent [19:49] there is a aptdaemon.client.set_terminal() fucntion (undocumented, found out reading code) [19:51] In that case you have a few options [19:52] here is the function https://www.apt-browse.com/browse/ubuntu/xenial/universe/all/python-aptdaemon/1.1.1+bzr982-0ubuntu14/file/usr/lib/python2.7/dist-packages/aptdaemon/client.py [19:52] line 936 [19:53] [19:56] here is the console file if you want to look for console.ConsoleClient https://www.apt-browse.com/browse/ubuntu/xenial/universe/all/python-aptdaemon/1.1.1+bzr982-0ubuntu14/file/usr/lib/python2.7/dist-packages/aptdaemon/console.py [19:58] or if you have aptdaemon installed, the files are in /usr/lib/python3/dist-packages/aptdaemon [19:59] ok cool. Are you using Python 3? [19:59] yes, 3. [19:59] let me download the aptdeamon package and I'll check it out. The code you linked me is Python 2. Is that correct? [20:00] yes, 2.7 [20:00] I haven't found the 3 online [20:00] ah ok [20:00] but shouldn change much [20:01] 👍 [20:01] I haven't seen the gt3widget.py in 2.7 though [20:08] so you are intending on calling set_terminal is that correct? [20:09] to set the dbus backage to use a specific pty instance as created using the python pty package? [20:12] in which case pty.openpty will create the master slave pair as shown in the docstring, and master, slave are file descriptors https://docs.python.org/3.2/library/pty.html [20:13] which you can then write to / read from. [20:14] yes, that's the idea [20:14] but I need to open the terminal. [20:14] I mean the app. [20:15] as in os.environ['SHELL']? [20:15] yes, thats it [20:17] yeah cool, have you had a look through the example in the pty documentation? It shows pty.spawn doing exactly that. by bassing os.environ['SHELL'] as the first argument, and a function which writes to a file using the passed file descriptor as the second [20:18] I tried that, but It stopped the script. [20:19] as in the Python interpreter quit and so it killed the process? [20:19] mid way through? [20:21] nope [20:21] my script also opens QtWidget [20:21] which when I use spawn those Widget aren't open [20:22] that's teh output:: ... hmoller@hmoller-pc:~/updateNotifier/lubuntu-update-notifier/daemon$ lxqt-sudo ./upgrader.py ... (0x7ffe0583d2c0) Warning: QXcbConnection: XCB error: 3 (BadWindow), sequence: 762, resource id: 12605898, major code: 40 (TranslateCoords), minor code: 0 [20:22] ... QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' ... root@hmoller-pc:/home/hmoller/updateNotifier/lubuntu-update-notifier/daemon# [20:23] when you spawn sh in python is it getting all of the environment variables through ~/.bashrc etc? [20:23] although pty.spawn is called after the Widget should be shown [20:25] mmm, maybe I have a problem with the second term of spawn function "read". [20:26] maybe see what the output of running env through the spawned shell returns and see if XDG_RUNTIME_DIR is set [20:27] my kids just woke up so I need to do breakfast duties. I'll be online but responses may be delayed [20:29] XDG_RUNTIME_DIR is a warning because I'm runnig as sudo. [20:33] running w/o sudo does nothing [20:33] hmoller@hmoller-pc:~/updateNotifier/lubuntu-update-notifier/daemon$ ./upgrader.py ... hmoller@hmoller-pc:~/updateNotifier/lubuntu-update-notifier/daemon$ printenv ... SHELL=/bin/bash [20:34] Are you able to send the script or repo address? [20:38] here it is [20:38] https://github.com/hmollercl/lubuntu-update-notifier/blob/master/daemon/upgrader.py [20:39] in line 213 is the pty.spawn [20:39] in 233 set_terminal() [20:40] if you comment pty.spawn it opens the widget [20:41] @tsimonq2: neat [20:55] So simply calling pty.spawn with just the shell command kills it? [20:55] yes [20:55] I can't see the line numbers but this is in the upgrade method right? [20:58] yes [20:58] You shouldn't need the spawn though as the subprocess call you have commented out should do the work for you [20:58] I think that too. [20:59] But I need to open a terminal window so I can see what writes in it [20:59] For showing progress or debugging? [21:00] You could read from slave and tie it to a text widget [21:01] both, progress and debugging [21:03] I would have to implement it, to read constantly, that was why I prefered using qterminal for example. [21:07] OK. Sorry for the long thread here. From what I can tell all your implementation of pty in Python is correct. [21:08] thanks for ypur help [21:08] -lugito:#lubuntu-devel- [rMANUAL32702d9f232f: Start extraction settings toolbox] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL32702d9f232f [21:09] Have you seen cases of handing an existing pty session over to qterminal or rather than launch shell through pty can you launch qterminal and pass it the commands ? [21:10] nope, I haven't seen it [21:10] I can open qtermianl and execurte commands on it. But it close after execution [21:10] cmd = ['qterminal', '-e', './upg.sh'] [21:11] process = subprocess.Popen(cmd) [21:11] that works [21:11] but I don't interact with it. [21:12] Wow, y'all have really been working hard on those ISO QA tests! [21:12] I like it! [21:13] kc2bez, @docEbrown: Could you guys please do the "run once" and "optional" tests as well? I'd like to at least mark amd64 as ready. [21:14] If either of you have i386 machines that would be helpful too, otherwise I'll ask guiverc when he comes around next. [21:16] Hans that is a pickle what level of interaction do you require? [21:16] @tsimonq2 I don't have an i386 machine and sure I'll check the others out [21:16] @docEbrown [@tsimonq2 I don't have an i386 machine and sure I'll check the others out], Thanks! [21:17] @tsimonq2 will you kill me if I test the i386 stuff on a 32bit VM on 64bit Hardware? :P [21:17] because I have a VM cluster for this stuff :P [21:17] @teward001 [@tsimonq2 will you kill me if I test the i386 stuff on a 32bit VM on 64bit Hardw …], Yes :P [21:24] @docEbrown [Hans that is a pickle what level of interaction do you require?], only reading [21:26] I'm developing the update notifier, I want to see the status/progress of the installartion of packages and if tehre are errors. [21:27] Can you tee stdout and stderr of qterminal to a file? [21:28] sorry, I'm not following you. [21:33] -lugito:#lubuntu-devel- [rMANUALbda596a30499: Add extract to subfolder checkbox] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALbda596a30499 [21:38] @tsimonq2 [ kc2bez, @docEbrown: Could you guys please do the "run once" and "opti …], I didn't have a chance yesterday but I will tonight. I will try to get a 32 bit test in too. [21:39] Cool! [21:40] docEbrown apparenly I have to read and write. It's not magic :( [21:45] -lugito:#lubuntu-devel- [rMANUAL4abf4df07965: Add tab for plugins] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL4abf4df07965 [23:44] -lugito:#lubuntu-devel- [rMANUALcb4f945d16d0: Add ok apply and cancel buttons to ark prefrences] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALcb4f945d16d0 [23:50] Hans, are you still there?