Nautilus, the GNOME file manager, has the dubious reputation of being the most improved application between releases, while simultaneously also being the application that needs the most improvement. Unfortunately, this version continues to improve slower than the rest of the desktop. To be fair, Nautilus has had a rather rocky history, going from monolithic bootstrap installer and software catalogue to a lean task-based file manager built out of components. The future looks brighter, though: the Nautilus team has finally solidified, so improvements should start happening at a much faster rate.
Performance has been improved, and thumbnailing is now plug-in?based. When teamed up with the media player Totem, Nautilus is able to display media thumbnails in the file manager and on the desktop. A nice added touch is the ?film sprocket? framing for videos, which allows you to differentiate a movie thumbnail from a picture thumbnail at a quick glance. Unfortunately, it was decided that Totem will not be included in this release. (We have more on this later.)
A new icon view debuts in this release, with the ability to display the filename to the right of the thumbnail/icon. Unfortunately, long filenames are not truncated elegantly, resulting in a misaligned view if you have a directory containing many files with irregular name lengths. Another long sought-after feature included in this release of Nautilus is the ability to hide files and directories within the filesystem. This is achieved through the use of a configuration file called ?.hidden?. Files named in this file will not appear in any Nautilus views.
Nautilus also supports scripting. Routine or repetitive tasks can be automated using scripts written in languages like Perl, Python and the Bourne shell. While GNOME 2.4 does not ship with any scripts, they are fairly easy to write, and a large collection can be found at G-scripts.
Advanced features like new views can be implemented as Nautilus components. One such notable example is the CD burner add-on, which allows files and music tracks to be written to CD-R with a few mouse clicks. Another is a media add-on which displays video and audio files, complete with metadata and a simple media player. As expected with any modern desktop, PDF documents are handled out of the box. Gpdf makes its debut as the PDF viewer for GNOME. While an excellent on-screen viewer, we were surprised and dismayed to find that gpdf has no print functionality at the moment. Fortunately, printing will be included in the GNOME 2.4.1 point release, so the feature should be available soon.
Nautilus uses gnome-vfs to provide access to files outside of the local filesystem. GNOME 2.4 ships with support for WebDAV (so you can use your .Mac iDrive in Nautilus), FTP, SMB (Microsoft Windows networking) and NFS. Unfortunately, performance with the last two protocols is abysmal. SMB and NFS file operations take orders of magnitude longer in Nautilus than in Windows Explorer (SMB only), Konqueror, and the Samba command-line clients. Directories containing more than 100 files are virtually unusable over the network. Performance for local directories with a large number of files has improved dramatically, however.
Desktop accessibility tools
Gnome 2.4 ships with GOK, an award-winning dynamic onscreen keyboard. It supports Direct Selection, Dwell Selection, Automatic Scanning and Inverse Scanning, and includes word completion. A detailed overview can be found on the GOK website.
Gnopernicus, the second accessibility application to ship with GNOME, provides a number of assistive technologies for people suffering from visual impairment. Most notably, it includes a screen reader, a screen magnifier and a Braille writer.
The GNOME Developer Platform
GConf
Windows has the Registry to keep track of settings. Linux, in contrast, has dotfiles (files whose names begin with a period). While GConf and the Windows Registry share the same goal, it is important to note that the similarities end there. Typically, Linux dotfiles can be found in a user’s home directory and contain configuration data. While these are robust, easy to edit with a basic text editor, and simple to backup, they lack a consistent API or a consistent format or organization. They’re also difficult to lock down, and they make imposing a network-wide configuration policy rather difficult. GConf is the GNOME project’s attempt at retaining the benefits of plain text files, while addressing these disadvantages. Unfortunately, the GConf editor shares a user interface similar to Regedit, leading many critics of GConf to wrongfully classify it as poor clone of the Windows Registry.
GConf stores data in a tree structure similar to a filesystem. ?Files? are configuration keys (?wallpaper?) and contain values (?my-smooth-wallpaper.png?). These are contained within ?directories? (?desktopsettings?) and are separated by forward slashes as the delimeters (?/desktopsettings/wallpaper?). The actual data storage is performed by a set of backend plugins. The default backend stores values in a directory hierarchy in ~/.gconf, with each directory carrying one XML file that contains the settings at that level.
GConf has a number of important properties. A notification service alerts applications to changes in configuration data, and is used by GNOME to (among other things) propagate settings to multiple applications. As GConf is the de facto way of persisting application settings, virtually every developer building applications for GNOME will end up utilizing it. They will be rewarded with a reasonable API and rich featureset. End users will appreciate the instant application of system-wide settings (such as network proxy server and desktop theme preferences), and system administrators will appreciate the options for site-wide configuration presets.
Support for multiple configuration sources allows things like a network-wide configuration policy to be implemented. GConf can be told to search a read-only network-wide configuration database before the user’s own database. For example, this might be used to enforce corporate standards for desktop settings. It is also network aware, allowing multiple logins to access the same GConf store.
A command line tool (gconftool) and a simple GUI application (gconf-editor) are supplied to facilitate administration.

The GUI gconf-editor tool, shown here inspecting the settings for Galeon. Note the per-key documentation.
GStreamer
Whether watching the latest movie trailer or listening to music, multimedia is an essential component of any modern desktop. GStreamer, which is still a relatively new library included with GNOME, provides a consistent, lightweight and extensible set of APIs for developing multimedia applications.
GStreamer is a pipeline-based framework. Arbitrary elements are connected together into pipelines through which streams of data pass. A pipeline can consist of:
- codecs that deal with encoding and decoding various video and audio formats,
- filters that manipulate a stream in some way. A filter might apply a reverberation effect or resize a video,
- generic helper functions that don’t fit cleanly into any of the other categories,
- sinks that form the end of the pipeline and deal with outputting the stream in some manner (to a file, to the screen, to the network, etc.),
- sources that inject data into the pipeline, and
- visualizations that output a visual representation of a stream, either for entertainment like goom, or for practical purposes, like a monoscope.
Elements are loaded at runtime and are completely self contained, something which facilitates the distribution of binary-only codecs.
To illustrate, let us build a pipeline to play an MP3. The first thing we need is a source?something to get data into the system. In this example, we need a filesrc object to read our MP3 from disk and output the raw MP3 stream. An encoded MP3 doesn’t do us much good?we need something to decode it. Happily, codec objects take an encoded stream and output a stream of raw audio or video. There are a number of MP3 codecs, but the ffdec_mp35 one will do. The last thing to do is to output the raw audio stream?a sink in GStreamer terms.
Our complete pipeline looks something like this:

If we wanted to output our MP3 to a different format, we would simply replace the alsasink object with a filesink object and drop a vorbisenc object between it and the ffdec_mp35 object. Voil??transcoding from MP3 to Ogg Vorbis.

While support is not yet finished, video streams can be manipulated in the same way as audio streams. We could, for example, use a DV1394 source to get a video stream from a FireWire DV recorder, pass it through an effects object which crops the video down, encode it using a MPEG-2 encoder and output it to a file using a filesink.

As a more convoluted example, we could take a stream from a DV1394 source, pass it through an effects object (for that cheesy home video feel), display the results on screen and transmit it across the network using UDP.

GStreamer includes a number of features designed to make life easier for developers. Caps negotiation allows elements to negotiate a compatible data type and autoplugging allows pipelines to be automatically constructed by specifying source and destination types. As a developer, the choice between using an ad hoc collection of disparate libraries or a consistent, integrated end-to-end solution is not a hard one to make.
Unfortunately, GStreamer is still quite new and the number of applications which make use of it are rather thin on the ground.
Pango
With an increasing percentage of GNOME users speaking and writing something other than English, support for non-ASCII character sets and non?left-to-right languages has become a pressing issue. The Pango project was started to develop a flexible open source solution for internationalized text layout and rendering. It now forms the basis for all text rendering within GNOME and GTK+.
The display of internationalized text is a difficult problem. Western languages, such as English, are fairly simple to display. The characters are simple and few in quantity, there are few contextual rules?for instance, the shape of the letter ?P? doesn’t change depending on its position in a sentence?and things like ligatures (linguistic shorthand which serves to make text more ornate or improve efficiency?for instance, & is a Latin ligature of ?et?) are typographic niceties, not vital parts of the script.
?
Arabic script followed by a passage of English
Non-Western languages are a completely different proposition: individual characters can be extremely complex. Some languages have thousands of similar-but-different glyphs. Due to contextual and positioning rules, word and glyph order are liable to change (reordering), Frequently, ligatures are often numerous and vital (e.g. Arabic).
The Pango solution
Pango has four main design goals:
- Modularity. Language dependent code is split off into loadable modules. This allows new languages to be easily supported and allows the size of the Pango library itself to be kept quite small?important for embedded applications.
- Independence from toolkit and font system. While Pango was originally built with GNOME and GTK+ in mind, it has been ported to Windows and is as platform-independent at possible.
- Comprehensiveness. Pango was designed to support as large a set of languages as possible.
- Quality of rendering, especially in languages with complex glyphs.
Currently, GNOME 2.4 supports more than 50 locales ? largely thanks to Pango and the dedication of translators from all over the world. Right to left languages such as Hebrew are supported and many GTK widgets re-arrange themselves accordingly.

Part of the GTK+ colour selection dialog box, in Hebrew (left) and English (right)

A Nautilus window in Chinese (left/top) and Hebrew (right/bottom). Note the reordering of widgets on the menu and toolbars.
Most developers will never actually touch Pango directly, though its benefits are felt by the entire GNOME platform. It is fair to say that everyone will appreciate the sophisticated font handling, antialiasing and Unicode support GNOME 2.4 boasts.
Developer accessibility tools and final thoughts
One of the core components of the GNOME platform is the Accessibility Toolkit (ATK), which defines system wide interfaces for storing and retrieving accessibility information. ATK makes it possible for assistive technologies to query running applications for state information, such as the name of the focused widget, its state and its role in the application. GTK+ implements the interfaces specified by ATK, which means that all standard GTK+ and GNOME widgets are “accessible.” A set of helper functions are provided to make it simple for developers to make their custom widgets accessible.
The Assistive Technology Service Provider Interface (AT-SPI) is complementary to ATK and allows new assistive technologies to be easily integrated into the GNOME platform.
The ATK ensures that the technologies used by disabled users to interact with a computer are able to communicate in a meaningful way with the desktop environment. Thus the ATK enables developers to easily develop applications which are accessible by virtually anyone who can interact with a computer with minimal effort. As countries like the United States pass accessibility laws like the Section 508 Guidelines, it has become more important for applications to become aware of the needs of people with disabilities.
Final Thoughts
GNOME 2.4 brings to the Linux desktop considerable polish, accessibility and consistency. This release is a culmination of the work done by commercial vendors and the GNOME community, as evidenced by the fact that three vendors–Sun, Red Hat and Ximian–have already shipped desktops focused on the GNOME 2 platform. The end result is a pleasant desktop that is nimble, attractive and unobtrusive. While it’s not perfect, the foundation is now there and the overall product has matured. Once the application suite that surrounds the GNOME Desktop (commonly known as the Fifth Toe Applications) reaches stability with their GTK+ 2 ports, the whole desktop suite will be complete. So while this release is more about consolidation and refinement than earth-shattering new features, it is still a worthwhile upgrade.
There are places where GNOME needs some improvement, however. While we admire GStreamer’s multimedia framework, it is disappointing that no powerful multimedia applications are shipped with GNOME 2.4. Rhythmbox, the iTunes-inspired music manager, and the Totem video player are still not fully integrated with GStreamer, and the desktop suffers as a result. Most users will probably use the venerable XMMS for music, or build these two applications with the more reliable and proven Xine backend instead. Considering that this is the second major GNOME release with GStreamer, there should be more applications available for users that use the framework.
While these shortcomings are noticeable, it should be noted that the project’s insistence on HIG compliance and ?doing things right? tend to echo throughout the desktop. The new file selector, Rhythmbox and Totem will be done properly, or not included in the desktop, period. Contrast this to the way the GNOME project used to do things, like shipping with half a dozen clock applets, and users will come to appreciate the consistency.
Pros
- Epiphany web browser with its elegant, non obtrusive interface
- ruthless dedication to a consistent desktop via the HIG (most notably the panels and applets)
- excellent multimedia framework
Cons
- lack of multimedia applications taking advantage of the multimedia framework
- poor network performance in Nautilus
- PDF viewer lacks print functionality
So what can we expect in GNOME 2.6? Our guesses are that the GStreamer applications will make it in once they mature, like sound-juicer (the CD ripper and encoder), Rhythmbox and a GStreamer-powered Totem. Expect deeper freedesktop.org integration, which will bring more consistency for all Linux desktop projects, as well as more ?enterprise level? management tools to manage large GNOME installations. We would like to see more HIG-compliant applications available for the desktop, as consistency and integration is a key to Linux desktop growth. If this release is any indication, though, within six months we will enjoy an even more Linux powerful desktop.
Revision History
| Date |
Version |
Changes |
| 9/9/2003 |
1.0 |
Release |