Conversation with #inferno at Sun Apr 3 10:15:08 2011 on powerman-asdf@irc.freenode.net (irc) (12:45:25) mjl-: jas: i just pushed up/down arrow history navigation for wm/run (12:45:34) mjl-: hope this is what you were looking for (12:47:45) mjl-: btw, that acme behaviour hasn't happened to me. but only incidentally use acme (13:36:20) tensai_cirno [~cirno@77.232.15.216] entered the room. (13:54:32) fgudin [~none@digi00070.digicube.fr] entered the room. (14:33:31) tensai_cirno left the room (quit: Ping timeout: 250 seconds). (15:06:44) mjl-: hmm (15:06:55) mjl-: i want to run secstore from lib/wmsetup (15:07:17) mjl-: but it requires a /dev/cons etc, so i thought i would run it in a wm/sh (15:07:47) mjl-: but, wm/sh spawns a prog once its initialized, so lib/wmsetup continues (15:08:06) mjl-: which is not what i want, because i do authenticated mounts that need the secstore keys (15:08:36) mjl-: i'm starting to conclude that wm/sh won't do, and there isn't anything else in inferno that will (15:09:00) mjl-: having to write wm/secstore is not ideal (15:09:27) mjl-: although requiring a /dev/cons in raw mode does not feel so great either (15:10:47) mjl-: if anyone has ideas on how to run a program from lib/wmsetup under something that provides /dev/cons, i'm interested (15:18:39) powerman: mjl-: I never used secstore, but I suppose you wanna enter some sort of password when starting emu? (15:19:22) mjl-: yeah (15:19:31) powerman: and secstore read that password from /dev/cons, but you unable to interact with secstore because you already in wm/wm (15:19:39) mjl-: yes (15:19:51) mjl-: wm/wm is starting, so its executing lib/wmsetup (15:19:54) powerman: I usual solve this by running such apps from ~/profile (15:20:08) mjl-: hmm, how is that executed? (15:20:16) powerman: so I enter password first and see wm/wm next :) (15:20:23) powerman: from /lib/sh/profile (15:20:31) mjl-: myeah (15:21:02) mjl-: that asks for the password in the host os command window that started emu then? (15:21:05) mjl-: like xterm, or cmd.exe (15:21:07) mjl-: ? (15:21:14) powerman: yep (15:21:21) powerman: like emu-g (15:21:26) mjl-: ok, that's not what i'm looking for (15:21:32) mjl-: this is for emuq, with vacinit (15:22:13) mjl-: which i want to be simple & convenient (15:22:59) mjl-: i.e. no switching windows to find something is waiting for user input before it continues (15:24:26) powerman: hm. there no switching windows because wm/wm window doesn't start until password will be entered. but if you wanna nice gui interface for secstore… (15:26:31) mjl-: i think there is enough of wm/wm to have multiple windows (15:26:43) mjl-: but if i start "wm/sh -c auth/secstore..." (15:26:56) mjl-: that command returns immediately, and lib/wmsetup continues (15:27:14) mjl-: where it starts doing auth, even though the secstore hasn't finished yet (15:29:17) powerman: ok, then why not put commands which doing auth in script, and put secstore at beginning of that script, and run full script in wm/sh instead of just single secstore? this way you'll have guaranteed execution order - secstore first, other commands requiring auth next (15:30:58) mjl-: yes, that makes quite some sense :) (15:31:02) mjl-: the secstore is optional (15:31:08) mjl-: running it i mean (15:31:11) mjl-: but that's not a problem (15:31:14) mjl-: i'll try that, thanks (15:32:31) mjl-: oh (15:32:33) mjl-: there is a problem (15:32:41) mjl-: i'm also running mounts in that script (15:32:51) mjl-: mounts that start authentication even (15:32:58) mjl-: and wm/sh always forks the namespace.. (15:33:05) mjl-: because it has to provide a /dev/cons :) (15:34:04) mjl-: so after the wm/sh that runs the script with secstore+mounts+more, the mounts are gone in the wm/wm namespace (15:34:46) mjl-: i actually already wrote a very simple wm/nsh (n for namespace), that you could run from wm/wm (wm/toolbar actually) menu (15:34:52) mjl-: and that wouldn't fork the namespace (15:35:04) mjl-: and along with that also didn't have a /dev/cons ☺ (15:43:39) powerman: export /n or /mnt from your main namespace before starting that wm/sh, and mount it withing that script? ;) (15:44:31) powerman: mjl-: a little not-straight-way, but should work :) (15:54:29) mjl-: yeah, but i don't want to push all data for /n through a layer of packing & unpacking (17:33:47) The account has disconnected and you are no longer in this chat. You will be automatically rejoined in the chat when the account reconnects.