9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: leimy2k@speakeasy.net
To: 9fans@cse.psu.edu
Subject: [9fans] Rio for window grouping/session management
Date: Sun,  9 Oct 2005 10:40:29 -0700	[thread overview]
Message-ID: <d6683fdd7bc0a3716398cdf7ac1980ed@psychobunny.homework.net> (raw)

I've taken to using pairs of windows for my faces/Acme Mail windows and I was thinking about how best to manage these pairs as a unit.  It seems the most natural way in Plan 9 is to use a "sub-rio" inside the top-level rio session.  This way I've a little hierarchy of sessions to manage related programs.

I use the following script to setup my upas/fs environment for this "sub-rio".

---
#!/bin/rc

upasname=leimy@opendarwin.org

plumber
upas/fs -f /imaps/mail.opendarwin.org
window -m acme -l $home^/adumps/amail.dump
faces
---

This actually works really well (for me) for this simple pairing.  I can clobber the whole session, move it around and the association stays the same.  One thing that kind of sucks is the "rio" label that gets set during rio startup that I do before running this script.

So, to scratch my own itch and satisfy my curiosity, I added a flag to my copy of rio "-l" which was originally intended to take an argument for the label rio should run under.  I decided to leave it blank as I can just use "label" before starting the sub-rio to achieve the same effect.

I was going to submit this as a patch [with the appropriate man page updates] but someone mentioned that I might be able to get the same effect from "exportfs".  

I'd like to know more about that option.  Obviously not changing rio's source [even though it's a 3 liner] is probably a better way to go.

It also occurs to me that the sort of things I want to do are probably more Plan B-like.  Being able to tar up a window environment session and then restore it by untarring seems really cool.

This is longer than I wanted it to be,

Dave



             reply	other threads:[~2005-10-09 17:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-09 17:40 leimy2k [this message]
2005-10-10  0:46 ` Russ Cox
2005-10-09 17:49   ` leimy2k
2005-10-10  1:07     ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d6683fdd7bc0a3716398cdf7ac1980ed@psychobunny.homework.net \
    --to=leimy2k@speakeasy.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).