NAME sdtdir2dtwmrc - translate directory tree to dtwmrc(4) menu SYNOPSIS sdtdir2dtwmrc [-D] [-n depth ] [-o file ] [ directory ] DESCRIPTION sdtdir2dtwmrc translates the directory tree rooted at direc- tory into a dtwmrc(4) hierarchical menu description. sdtdir2dtwmrc recursively walks the directory tree to depth levels and emits a submenu for each directory processed. This allows the dtwm(1) Workspace Menu to traverse the tree found in $HOME/.dt/wsmenu. sdtdir2dtwmrc works as follows. For each directory pro- cessed, it first writes Menu dirpath { "dirname" f.title where dirname is the basename(1) of the directory and dir- path is the relative path of the directory after removal of slashes and other characters not allowed in a dtwmrc(4) menu name. For each entry in the directory, a line is written as fol- lows. If the entry is executable, is not a directory, and has the name of an action (as determined by DtActionEx- ists(3)), sdtdir2dtwmrc writes "actionLabel" f.action actionName where actionLabel is determined by DtActionLabel(3). If the entry is neither a directory nor an action file, or is a directory and .sdtdirs_are_leaves exists as its sibling, then sdtdir2dtwmrc writes "filename" f.action actionName filepath where filename is the basename(1) of the entry, filepath of the entry as given by concatenating directory and the rela- tive path to the entry, and actionName is the default action for the entry's CDE datatype. If the entry is a directory, it writes "dirname" f.menu dirpath and adds the directory to the list of directories it has yet to process. After processing a directory, it writes } OPTIONS The following options are available: -D For each directory, include in the directory's submenu an item to invoke the directory's default action on the directory itself. ENVIRONMENT DTDATABASESEARCHPATH A comma-separated list of directories (with optional host: prefix) that tells the action service where to find the action databases. SEE ALSO dtwm(1), dtaction(1), DtActionExists(3), dtwmrc(4), dtac- tionfile(4)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |