-   Linux - Software (
-   -   Why is the desktop rendered by the file manager? (

tfnc99 03-08-2013 08:22 AM

Why is the desktop rendered by the file manager?
This applies to KDE, GNOME, and Windows. Why is the desktop (wallpaper, icons, some times the taskbar) shown by the file manager ( we have all heard about the reason Nemo was made, and all have had explorer.exe crash at some point)? It just seems like something the window manager should handle.

mennohellinga 03-09-2013 06:49 AM

Why do I have a Desktop Directory?
I assume you are referring to a directory called "Desktop", or something like that, which you have in your home folder?
There are a few places on a GNU/Linux system where user data is stored:

/etc is for global configurations which will not be changed very often, such as fstab or the network settings. This directory can not be edited by normal users.

/var is for global configuration and data files which are expected to change often, such as log files and high scores for games. Some of the files here are user-writable

/home is for all the individual user data.

All of this is described in the Unix File Hierarchy Standard.
So, your home directory has to contain the information about your desktop, and if it's there, your File Manager will show it.

But why isn't it a hidden directory, like all those personal config files (.bashrc, .vim, .xmonad, etc)?
Why should it be? Having a visible directory makes stuff, like manually tweaking your icons, a lot easier.
If this really bothers you, and you're using KDE, go to System Settings->About Me->Paths and change the name of your Desktop directory to .Desktop (note the dot in front). Then rename the desktop directory to that and you will never have to see it again.

goumba 03-10-2013 06:42 AM


My best guess would be that all of the functionality required for the desktop (launchers, files in that folder, etc.) is essentially the same as that for a file manager, so it followed to have the file manager handle the desktop, rather than writing a whole new application.

At least this situation exists in DEs where the file manager is already in use for other purposes.

Most WMs do not handle the desktop at all, and would probably need extra code the author is not willing to deal with.

10110111 03-10-2013 10:06 AM


This applies to KDE, GNOME, and Windows.
In fact, KDE's desktop is not rendered by its file manager, neither in KDE3, nor in KDE4. In KDE3 you had Konqueror as default file manager and kdesktop as desktop app. In KDE4 you have Dolphin as default file manager and plasma-desktop as desktop workspace.


It just seems like something the window manager should handle.
Wrong, Window Manager should only Manage Windows, which is what most WMs are actually doing: KWin, XFWM, metacity, compiz, etc.

As for why Windows and GNOME use their file managers to render desktop directory contents... well, it's natural to show files in file manager, and adding a wallpaper to it is almost the only thing you need for having desktop.

The taskbar is rendered by filemanager only in Windows AFAICT. In GNOME you have gnome-panel, in KDE you have kicker(KDE3) or plasma(KDE4), in XFCE you have xfce4-panel, etc. .

Of course there are some examples of mixing functionalities, e.g. fvwm95 which gives you taskbar and manages windows, but this is more an exception than a rule.

All times are GMT -5. The time now is 05:14 PM.