Ubuntu – Are there redundant directories for .desktop files

desktopfilesystem

I know that the .desktop files of installed applications will be found in /usr/share/applications.

Today, I came across the directory /usr/share/app-install/desktop. It contains the same .desktop files of applications installed in my system.

So what is the /usr/share/app-install/desktop directory? Why are there two directories for the same purpose?


UPDATE: Thanks to @serg; he states this question has an answer.

Now I know what this directory is, but I still have a question:

If the .desktop files are all included in /usr/share/app-install/desktop, so why is there also the directory /usr/share/applications? Isn't it a waste of resources to keep both directories up to date?

Best Answer

The files encountered are nothing more than symbolic links to meta file data of installed programs. As Serg explained the apps using the software center go into described folder. They are not real programs but merely point were the system can cache for faster use next time. It more effective and efficient to have a system gather all programs and make meta files and symbolically link them in one area.

But Ubuntu uses two separate package managers. One is apt one is the software center. This in turn creates separate package file systems. This is how Ubuntu deals with it, but instead of throwing it all together, the two systems act like a couple. They both communicate to see what is there, both have root access to both, but they do not share what programs are installed by each other

Related Question