Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As the title says.

I'm having a really hard time trying to understand what the differences between a desktop environment and a window manager are?


EDIT: This is what I found out later.

There are basically three layers that can be included in the Linux desktop:

X Windows – This is the foundation that allows for graphic elements to be drawn on the display. X Windows builds the primitive framework that allows moving of windows, interactions with keyboard and mouse, and draws windows. This is required for any graphical desktop.

Window Manager – The Window Manager is the piece of the puzzle that controls the placement and appearance of windows. Window Managers include: Enlightenment, Afterstep, FVWM, Fluxbox, IceWM, etc. Requires X Windows but not a desktop environment.

Desktop Environment – This is where it begins to get a little fuzzy for some. A Desktop Environment includes a Window Manager but builds upon it. The Desktop Environment typically is a far more fully integrated system than a Window Manager. Requires both X Windows and a Window Manager. Examples of desktop environments are GNOME, KDE, Xfce among others)

share|improve this question
you might wanna add examples of desktop environments (GNOME, KDE, Xfce, etc.) – Lawand Jan 7 '11 at 19:21
@Lawand: Thanks, I added the examples and appropriate links! – Zolomon Jan 7 '11 at 19:48

3 Answers

up vote 9 down vote accepted

The window manager manages your windows. It puts the window decoration around the contents including the buttons to minimize or close. It allows resizing and moving the windows around, decides which window is on top. Metacity and Compiz are two examples from today, twm and fvwm might be remembered by old people like me.

A desktop environment gives you an overall user experience. It has the panels, the system menus, the starters, the status applets. It needs a window manager, of course, to manage the windows. It might offer a default file explorer and viewer. To streamline, it might even contain default editor, terminal program, or even e-mailer, all made to look alike and work together. Gnome, XFCE and KDE are the best known at the moment.

share|improve this answer
Is the task bar (window list) part of the Window Manager, or Desktop Environment? – Dan Dascalescu Dec 28 '12 at 10:34
I do not think it’s really useful to make a sharp distinction. My dear old fvwm came with several widgets (among them pager and window list), but I would not call fvwm anything more than a window manager. OTOH, Gnome’s or Unity’s bars are not part of the window manager anymore. – MPi Dec 29 '12 at 20:15

I'll try to be brief. Taking Ubuntu for an example:

  • Compiz/Metacity (or KWin, XFWM) are window managers. Their purpose is to draw windows, borders, buttons etc.
  • Gnome (or KDE, XFCE) are desktop environments, because beside a window manager they package a login screen, panels and systrays as well as certain tools to configure and tweak settings.
share|improve this answer

IMHO the Desktop Environment term derives from Window Manager term. As a Desktop Environment is a set of software/tools which builds today's complex visual interface(s) between human being and computer, while Window Manager serves just for creating a simple graphical interface(s) (I remember XWindows on Silicon Graphics station in 1995 :) ).

Regards, Vincenzo

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.