3 for my $wd (glob "/proc/[0-9]*/cwd")
5 $dir{$_} = $wd if $_ = readlink $wd;
8 for my $dir (sort keys %dir)
13 $opendir = $wd if ! -e
$dir;
15 # escape for icewm menu parser
16 $dir =~ s{^$ENV{'HOME'}/}{~/};
17 $dir =~ s/[""\\]/\\$&/g;
18 $opendir =~ s/[""\\]/\\$&/g;
20 print "prog \"$dir\" folder mimeopen-gui \"$opendir\"\n"