/srv/irclogs.ubuntu.com/2019/02/25/#lubuntu-devel.txt

-lugito:#lubuntu-devel- [rMANUAL5b4a3078b48d: Add altenrate shortcuts for next previous picture] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL5b4a3078b48d00:49
-lugito:#lubuntu-devel- [rMANUAL5ef64a96d22c: remove duplicated open line] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL5ef64a96d22c00:53
-lugito:#lubuntu-devel- [rMANUALe95189cb159f: Restyle checkboxes and give print screen key highlighted] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALe95189cb159f01:01
lubotrbn10a was added by: rbn10a01:14
lubot<tsimonq2> Welcome!01:15
-lugito:#lubuntu-devel- [rMANUALdeab60caa219: Add find options for ARK] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALdeab60caa21901:17
-lugito:#lubuntu-devel- [rPCMANFMQTARCHIVEbbb02d965ac2: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rPCMANFMQTARCHIVEbbb02d965ac204:47
-lugito:#lubuntu-devel- [rPCMANFMQTARCHIVEe7fbf734ccfc: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rPCMANFMQTARCHIVEe7fbf734ccfc04: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/rPCMANFMQTARCHIVE5f5277566d3604:47
-lugito:#lubuntu-devel- [rLXQTCONFIGARCHIVE5a243420a8ec: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rLXQTCONFIGARCHIVE5a243420a8ec04:55
-lugito:#lubuntu-devel- [rLXQTCONFIGARCHIVEf3924064fb73: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTCONFIGARCHIVEf3924064fb7304: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/rLXQTCONFIGARCHIVEe0215a3129bc04:55
-lugito:#lubuntu-devel- [rMANUALc049412af7fe: Add properties to ARK] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALc049412af7fe05:22
-lugito:#lubuntu-devel- [rLXQTRUNNERARCHIVE960251246861: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rLXQTRUNNERARCHIVE96025124686105:30
-lugito:#lubuntu-devel- [rLXQTRUNNERARCHIVE5314edc68830: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTRUNNERARCHIVE5314edc6883005: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/rLXQTRUNNERARCHIVE58e8e471bcb905:30
=== guiverc_d is now known as guiverc
-lugito:#lubuntu-devel- [rLXQTSUDOARCHIVE6d7d4560ff85: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rLXQTSUDOARCHIVE6d7d4560ff8506:53
-lugito:#lubuntu-devel- [rLXQTSUDOARCHIVE495f2a87078b: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTSUDOARCHIVE495f2a87078b06: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/rLXQTSUDOARCHIVE18a3c397c8a806:53
-lugito:#lubuntu-devel- [rLXQTGLOBALKEYSARCHIVEeffc72500155: DSC file for 0.14.1-1] Diffusion committed: https://phab.lubuntu.me/rLXQTGLOBALKEYSARCHIVEeffc7250015507:06
-lugito:#lubuntu-devel- [rLXQTGLOBALKEYSARCHIVEca546166a453: Import patches-unapplied version 0.14.1-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rLXQTGLOBALKEYSARCHIVEca546166a45307: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/rLXQTGLOBALKEYSARCHIVE14bd68fd66eb07:06
lubotAlexanderS4 was added by: AlexanderS410:32
-lugito:#lubuntu-devel- [rFEATHERPADARCHIVE3b40ec4269e0: DSC file for 0.9.4-1] Diffusion committed: https://phab.lubuntu.me/rFEATHERPADARCHIVE3b40ec4269e011:04
-lugito:#lubuntu-devel- [rFEATHERPADARCHIVE6a72768353a0: Import patches-unapplied version 0.9.4-1 to debian/sid] agaida (Alf Gaida) committed: https://phab.lubuntu.me/rFEATHERPADARCHIVE6a72768353a011: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/rFEATHERPADARCHIVEd5f11ae8400a11:04
lubotChristian Godínez was added by: Christian Godínez13:12
lubot<tsimonq2> Fwd from popeydc: @tsimonq2 this crossed my desk today... features lubuntu on an atom netbook. https://www.youtube.com/watch?v=H3QOkne3IsE15:29
lubot<tsimonq2> Welcome @AlexanderS4 and Christian Godínez15:30
-lugito:#lubuntu-devel- [rMANUAL16d9b7a8f837: Start ARK prefrences] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL16d9b7a8f83718:31
lubot<HMollerCl> anyone here knows how to hablde python pty library?19:24
tsimonq2wxl: DMB just approved packageset delegation for lubuntu to ~lubuntu-dev.19:30
lubot<docEbrown> @HMollerCl  I have a little experience with it. What are you after? Python 2/3?19:37
lubot<HMollerCl> Hi docEbrown I'm after connecting aptdaemon to a pty so I can read the installation progress.19:38
lubot<HMollerCl> I'm not sure how to make it work19:38
lubot<HMollerCl> gnome uses vte.pty19:39
lubot<HMollerCl> at the begging I want to open a qterminal (or any other terminal) so I can see what's happening19:39
lubot<HMollerCl> 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, slav19:40
lubote = pty.openpty() ...         >>> transaction.set_terminal(os.ttyname(slave))19:40
lubot<HMollerCl> but I think I need to open a terminal19:41
lubot<HMollerCl> 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
lubot<docEbrown> So openpty opens a terminal pair and master and slave are file descriptors for the pair19:42
lubot<docEbrown> Ahh OK19:43
lubot<docEbrown> Just to check so do you want to read the stdout of the qterminal sub process you just opened?19:45
lynorianfile redirection?19:45
lubot<HMollerCl> @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:46
lubot<HMollerCl> aptdaemon is a python library for performing packages action.19:47
lubot<HMollerCl> is what ubuntu use.19:47
lubot<HMollerCl> when you do upgrades via gui, the embedded terminal comunicates through this.19:48
lubot<docEbrown> Yep yep excellent19:48
lubot<HMollerCl> there is a aptdaemon.client.set_terminal() fucntion (undocumented, found out reading code)19:49
lubot<docEbrown> In that case you have a few options19:51
lubot<HMollerCl> 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.py19:52
lubot<HMollerCl> line 93619:52
lubot<docEbrown> <reading>19:53
lubot<HMollerCl> 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.py19:56
lubot<HMollerCl> or if you have aptdaemon installed, the files are in /usr/lib/python3/dist-packages/aptdaemon19:58
lubot<docEbrown> ok cool.  Are you using Python 3?19:59
lubot<HMollerCl> yes, 3.19:59
lubot<docEbrown> let me download the aptdeamon package and I'll check it out.  The code you linked me is Python 2.  Is that correct?19:59
lubot<HMollerCl> yes, 2.720:00
lubot<HMollerCl> I haven't found the 3 online20:00
lubot<docEbrown> ah ok20:00
lubot<HMollerCl> but shouldn change much20:00
lubot<docEbrown> 👍20:01
lubot<HMollerCl> I haven't seen the gt3widget.py in 2.7 though20:01
lubot<docEbrown> so you are intending on calling set_terminal is that correct?20:08
lubot<docEbrown> to set the dbus backage to use a specific pty instance as created using the python pty package?20:09
lubot<docEbrown> 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.html20:12
lubot<docEbrown> which you can then write to / read from.20:13
lubot<HMollerCl> yes, that's the idea20:14
lubot<HMollerCl> but I need to open the terminal.20:14
lubot<HMollerCl> I mean the app.20:14
lubot<docEbrown> as in os.environ['SHELL']?20:15
lubot<HMollerCl> yes, thats it20:15
lubot<docEbrown> 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 second20:17
lubot<HMollerCl> I tried that, but It stopped the script.20:18
lubot<docEbrown> as in the Python interpreter quit and so it killed the process?20:19
lubot<docEbrown> mid way through?20:19
lubot<HMollerCl> nope20:21
lubot<HMollerCl> my script also opens QtWidget20:21
lubot<HMollerCl> which when I use spawn those Widget aren't open20:21
lubot<HMollerCl> 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
lubot    ... QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' ... root@hmoller-pc:/home/hmoller/updateNotifier/lubuntu-update-notifier/daemon#20:22
lubot<docEbrown> when you spawn sh in python is it getting all of the environment variables through ~/.bashrc etc?20:23
lubot<HMollerCl> although pty.spawn is called after the Widget should be shown20:23
lubot<HMollerCl> mmm, maybe I have a problem with the second term of spawn function "read".20:25
lubot<docEbrown> maybe see what the output of running env through the spawned shell returns  and see if XDG_RUNTIME_DIR is set20:26
lubot<docEbrown> my kids just woke up so I need to do breakfast duties.  I'll be online but responses may be delayed20:27
lubot<HMollerCl> XDG_RUNTIME_DIR is a warning because I'm runnig as sudo.20:29
lubot<HMollerCl> running w/o sudo does nothing20:33
lubot<HMollerCl> hmoller@hmoller-pc:~/updateNotifier/lubuntu-update-notifier/daemon$ ./upgrader.py ... hmoller@hmoller-pc:~/updateNotifier/lubuntu-update-notifier/daemon$ printenv ... SHELL=/bin/bash20:33
lubot<docEbrown> Are you able to send the script or repo address?20:34
lubot<HMollerCl> here it is20:38
lubot<HMollerCl> https://github.com/hmollercl/lubuntu-update-notifier/blob/master/daemon/upgrader.py20:38
lubot<HMollerCl> in line 213 is the pty.spawn20:39
lubot<HMollerCl> in 233 set_terminal()20:39
lubot<HMollerCl> if you comment pty.spawn it opens the widget20:40
wxl@tsimonq2: neat20:41
lubot<docEbrown> So simply calling pty.spawn with just the shell command kills it?20:55
lubot<HMollerCl> yes20:55
lubot<docEbrown> I can't see the line numbers but this is in the upgrade method right?20:55
lubot<HMollerCl> yes20:58
lubot<docEbrown> You shouldn't need the spawn though as the subprocess call you have commented out should do the work for you20:58
lubot<HMollerCl> I think that too.20:58
lubot<HMollerCl> But I need to open a terminal window so I can see what writes in it20:59
lubot<docEbrown> For showing progress or debugging?20:59
lubot<docEbrown> You could read from slave and tie it to a text widget21:00
lubot<HMollerCl> both, progress and debugging21:01
lubot<HMollerCl> I would have to implement it, to read constantly, that was why I prefered using qterminal for example.21:03
lubot<docEbrown> OK. Sorry for the long thread here. From what I can tell all your implementation of pty in Python is correct.21:07
lubot<HMollerCl> thanks for ypur help21:08
-lugito:#lubuntu-devel- [rMANUAL32702d9f232f: Start extraction settings toolbox] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL32702d9f232f21:08
lubot<docEbrown> 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:09
lubot<HMollerCl> nope, I haven't seen it21:10
lubot<HMollerCl> I can open qtermianl and execurte commands on it. But it close after execution21:10
lubot<HMollerCl> cmd = ['qterminal', '-e', './upg.sh']21:10
lubot<HMollerCl> process = subprocess.Popen(cmd)21:11
lubot<HMollerCl> that works21:11
lubot<HMollerCl> but I don't interact with it.21:11
tsimonq2Wow, y'all have really been working hard on those ISO QA tests!21:12
tsimonq2I like it!21:12
tsimonq2kc2bez, @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:13
tsimonq2If either of you have i386 machines that would be helpful too, otherwise I'll ask guiverc when he comes around next.21:14
lubot<docEbrown> Hans that is a pickle what level of interaction do you require?21:16
lubot<docEbrown> @tsimonq2 I don't have an i386 machine and sure I'll check the others out21:16
lubot<tsimonq2> @docEbrown [@tsimonq2 I don't have an i386 machine and sure I'll check the others out], Thanks!21:16
lubot<teward001> @tsimonq2 will you kill me if I test the i386 stuff on a 32bit VM on 64bit Hardware?  :P21:17
lubot<teward001> because I have a VM cluster for this stuff :P21:17
lubot<tsimonq2> @teward001 [@tsimonq2 will you kill me if I test the i386 stuff on a 32bit VM on 64bit Hardw …], Yes :P21:17
lubot<HMollerCl> @docEbrown [Hans that is a pickle what level of interaction do you require?], only reading21:24
lubot<HMollerCl> I'm developing the update notifier, I want to see the status/progress of the installartion of packages and if tehre are errors.21:26
lubot<docEbrown> Can you tee stdout and stderr of qterminal to a file?21:27
lubot<HMollerCl> sorry, I'm not following you.21:28
-lugito:#lubuntu-devel- [rMANUALbda596a30499: Add extract to subfolder checkbox] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALbda596a3049921:33
lubot<kc2bez> @tsimonq2 [<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:38
lubot<tsimonq2> Cool!21:39
lubot<HMollerCl> docEbrown apparenly I have to read and write. It's not magic :(21:40
-lugito:#lubuntu-devel- [rMANUAL4abf4df07965: Add tab for plugins] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUAL4abf4df0796521:45
-lugito:#lubuntu-devel- [rMANUALcb4f945d16d0: Add ok apply and cancel buttons to ark prefrences] lynorian (Lyn Perrine) committed: https://phab.lubuntu.me/rMANUALcb4f945d16d023:44
lubot<docEbrown> Hans, are you still there?23:50

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