On Mon, Mar 20, 2006 at 12:16:32AM -0800, Anthony Martin wrote:
> Stefan Tibus <sjti_AT_gmx.net> once said:
> > 4) the filesystem suffers from several bugs
> > c) wmiir read /ws and wmiir read /ws/sel only show client 0
> > and others (e.g. 1) are accessible
> The behaviour in 4c, however, is correct. /ws shows the namespace of the
> current workspace, including the areas of that workspace. For example,
> if you had two columns and focus was on the second, /ws would look like:
>
> sh% wmiir read /ws
> d-r-x------ apm apm 0 Sun Mar 19 23:50:59 2006 0
> d-r-x------ apm apm 0 Sun Mar 19 23:50:59 2006 1
> ---w------- apm apm 0 Sun Mar 19 23:50:59 2006 ctl
> d-r-x------ apm apm 0 Sun Mar 19 23:50:59 2006 sel
> --rw------- apm apm 1 Sun Mar 19 23:50:59 2006 tag
>
> 0 is the floating area, 1 is the first column, and sel is the second
> column. You can still access /ws/2 but listing it as sel has advantages.
>
> For /ws/sel, the client namespaces in the selected area are listed. If
> you have a column with three clients and focus is on the first client,
> /ws/sel would look like:
>
> d-r-x------ apm apm 0 Mon Mar 20 00:00:59 2006 1
> d-r-x------ apm apm 0 Mon Mar 20 00:00:59 2006 2
> ---w------- apm apm 0 Mon Mar 20 00:00:59 2006 ctl
> --rw------- apm apm 5 Mon Mar 20 00:00:59 2006 mode
> d-r-x------ apm apm 0 Mon Mar 20 00:00:59 2006 sel
>
> Here, sel is the namespace of client 0 (in respect to the area), 1 is
> client 1, and 2 is client 2.
Hmm...ok, but it's quite unusual and not even consistent. Why can I
access a file which the listing says does not exist? To be consistent,
if "1" is named "sel" then "wmiir read /..../1" should fail. But it
is very useful to be able to access all areas/clients by number, so
it was kept. But then I think it should also be listed.
Currently, "sel" can be thought of being a temporary symlink (as
shorthand) to the selected area/client and I think it should be listed
as such then.
Regards,
Stefan
P.S. Thanks for the patch.
Received on Mon Mar 20 2006 - 16:16:06 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:01:21 UTC