SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

gnome-ls: a file listing utility

gnome-ls is a file listing utility, similar in scope and behavior to the GNU ls(1) utility and Steve Baker's tree(1), but tries to improve. It is based on GNOME-VFS.

Features
  • default settings depend on the data being listed (location, number of objects)
  • a few display modes
    • table with vertical (default) or horizontal layout of entries
    • flat list (one entry per row)
    • comma separated list
    • tree
  • customizable collection of fields to be printed
  • basic filtering of entries, by file type and/or MIME-Type
  • optional display of full link chains
  • feedback for potentially slow operations when standard output is connected to a TTy (compile-time option)

Configuration and installation

The usual "./configure && make install" should suffice; see the generic installation instructions file INSTALL for more information.

Installation prefix, TTy feedback and debug mode may be toggled by passing the appropriate arguments to the "configure" script (see "./configure --help").

Configuration file

No built-in color preferences for MIME-Types are supplied. The GLS_COLORS (see also below) environment variable must be set up, or "mime-type" entries must be specified in the resource file ("gnome-ls.rc"), which is expected to be placed in the ~/.gnome2 directory.

An example configuration file is provided in the "extras" subdirectory. It should be installed by issuing "make user-install" while in the toplevel source distribution directory.

Environment variable GLS_COLORS

It currently only supports color preferences for MIME-Types and so-called "special" types.

Optionally, the provided PERL script "glsrc2GLS_COLORS.pl" found in the "extras" subdirectory will act similarly to the dircolors(1) utility which is distributed with GNU ls: it will extract color preferences from a gnome-ls resource file and output shell commands to set the GLS_COLORS environment variable.

It should be invoked as follows, and ignoring any warning:

eval `perl extras/glsrc2GLS_COLORS.pl < extras/gnome-ls.rc`


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.