Re: [dwm] dmenu-2.4

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Fri, 23 Feb 2007 15:37:15 +0100

On Fri, Feb 23, 2007 at 02:32:29PM +0000, Frederik Deweerdt wrote:
> On Fri, Feb 23, 2007 at 02:50:56PM +0100, Christian Garbs wrote:
> > On Fri, Feb 23, 2007 at 01:42:24PM +0000, Frederik Deweerdt wrote:
> > > On Fri, Feb 23, 2007 at 02:34:05PM +0100, Anselm R. Garbe wrote:
> >
> > > > One remark, your construct is not equivalent to what dmenu_path
> > > > does, because it does not suppress the directories for me...
> > > >
> > > Interesting, the -type f should get read of them. Does this:
> >
> > Arg means something different:
> >
> > find produces something like this:
> >
> > /bin/bash
> > /usr/bin/sort
> > /usr/bin/uniq
> >
> True, I forgot to include a -printf "%f\n" at the end of the find. But I
> just checked and -printf seems to be GNU only. Forget the whole thing.

In the meantime I pushed an old version which has been
originally developed by Georg afaik (Jukka pointed me to it), it
looks as follows - and in contrast to most other solutions this
one checks if it's really executable for the user (which is a
good point Jukka!):

#!/bin/sh
IFS=:
for dir in $PATH
do
        for file in "$dir"/*
        do
                test -x "$file" && echo "${file##*/}"
        done
done | sort -u

Will be part of dmenu-2.5. But before I release dmenu-2.5 I will
wait until dwm-3.7 is ready to be released (approx. tomorrow).

Regards,

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Fri Feb 23 2007 - 15:37:15 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:38:10 UTC