Re: [dev] [Tabbed] Capturing new browser instances

2011-06-23 Thread Jason Ryan
On 24/06/11 at 12:20am, Connor Lane Smith wrote: > On 24 June 2011 00:13, Jason Ryan wrote: > > That's sort of what I was trying to do with a script using pgrep to identify > > tabbed and hitch it to that -- or so I thought... > > It would be easier just to use an XID file (analogous to a PID fil

Re: [dev] [Tabbed] Capturing new browser instances

2011-06-23 Thread Connor Lane Smith
On 24 June 2011 00:13, Jason Ryan wrote: > That's sort of what I was trying to do with a script using pgrep to identify > tabbed and hitch it to that -- or so I thought... It would be easier just to use an XID file (analogous to a PID file): $ tabbed -d > /tmp/tabbed.xid $ vimprobable2 -e `cat /

Re: [dev] [Tabbed] Capturing new browser instances

2011-06-23 Thread Jason Ryan
On 24/06/11 at 12:06am, Connor Lane Smith wrote: > On second thoughts I may have misread. If you mean you're opening a > complete new instance, and vimprobable is not expected to pick it up > (i.e., be a 'singleton'), perhaps you could change vimprobable to be a > script which calls the *real* vimp

Re: [dev] [Tabbed] Capturing new browser instances

2011-06-23 Thread Jason Ryan
On 24/06/11 at 12:02am, Connor Lane Smith wrote: > Hey, > > On 23 June 2011 23:41, Jason Ryan wrote: > > However, if I open a link from another app, eg., mutt or irssi, a new > > instance > > of vimprobable is opened as the master window outside tabbed. > > > > Is there any way to have tabbed "c

Re: [dev] [Tabbed] Capturing new browser instances

2011-06-23 Thread Connor Lane Smith
On second thoughts I may have misread. If you mean you're opening a complete new instance, and vimprobable is not expected to pick it up (i.e., be a 'singleton'), perhaps you could change vimprobable to be a script which calls the *real* vimprobable with the appropriate xembed flag? cls

Re: [dev] [Tabbed] Capturing new browser instances

2011-06-23 Thread Connor Lane Smith
Hey, On 23 June 2011 23:41, Jason Ryan wrote: > However, if I open a link from another app, eg., mutt or irssi, a new instance > of vimprobable is opened as the master window outside tabbed. > > Is there any way to have tabbed "catch" the new instance? I have tried > scripting > it with pgrep, b

[dev] [Tabbed] Capturing new browser instances

2011-06-23 Thread Jason Ryan
I start vimprobable in tabbed with this entry in config.h SHCMD("TID=`tabbed -d 2>/dev/null`; vimprobable2 -e $TID") and if I open a new window from within vimprobable, it is within tabbed. However, if I open a link from another app, eg., mutt or irssi, a new instance of vimprobable is

[dev] [sbase] cp and security

2011-06-23 Thread Random832
I've written most of cp, but one issue keeps bugging me. I can't figure out how to get rid of race conditions within the constraints that sbase is implemented in (POSIX 2001, no XSI extensions). If we were using POSIX 2008 or XSI extensions, I could use the at() functions, or at least fchdir(),