The Path Manager Widget

Functions

The Path Manager provides a graphical representation of the PATH environment variable, with all the operations that need to be performed on the path.

Specifically, it allows the user to perform the following operations visually:

  1. Add a directory to the path
  2. Remove a directory from the path
  3. Change the order of directories in the path
  4. Unlink the user's path from the global path

Screenshots

The Path Manager is invoked from the Status Bar by pressing the Settings button and choosing the Path item, as shown below:

Here is how a directory would be added to the path using the Path Manager:

As shown, one can add a directory to the path by clicking on the Add button. This calls up the Directory Navigator widget, which helps the user specify the directory to be added.

How do you remove a directory from the path?

A directory can be removed very simply by selecting it and clicking the Remove button.

What about changing the order of directories in the path?

The Move Up and Move Down buttons help a user visually change the order of directories in the path. Observe that the directories specified in /etc/profile act as a unit. It is not possible to insert a directory in-between these directories. While moving a directory past these directories, all of them are skipped together.

The underlying "path model" we assume is that some directories are specified as part of every user's path in the /etc/profile file, and that each user can add to that in his or her local .profile file, using the $PATH variable. What if a user wants to define the path afresh without using the globally defined path at all?

The Unlink Global button detaches the global path from the user's PATH variable altogether. Its toggle, the Link Global button, helps to re-attach the global path to the user's PATH variable.

Evaluation

Supporting Free Software

This page hosted by Get your own Free Home Page
1