I was wandering if .desktop files are affected when an application is updated or just the /usr/bin/* files? I'm making an menu with customized categories and it's not gonna work is the categories in .desktop files are reset to default when an application is updated.
Asked
Active
Viewed 420 times
5
Maud Kon
- 541
- 1
- 4
- 18
-
@DKBose That sounds like a correct answer to me, so feel free to put it up as one. – Jos May 20 '15 at 13:16
-
See my comment on the answer. – Jacob Vlijm May 20 '15 at 13:47
1 Answers
6
The .desktop files is in really part of the package itself, so of course the .desktop will b updated within the package.
Indeed the .desktop files can be found in 3 different places.
/usr/share/applications/usr/share/app-install/desktop~/.local/share/applications
But be care for some tips:
The .desktop in the /usr/share/applciations and those in /usr/share/app-install/desktop will be updated since those are related to system wide and those .desktop files are created when installing via apt-get or Ubuntu Software Center.
But to make sure that your file will not change you can put it in ~/.local/share/applications, as those directories are for the user himself, so it'll not be changed unless you did it.
Related question: Why are there redundant directories for .desktop files?
Eric Duminil
- 409
- 4
- 13
Maythux
- 82,867
- 54
- 239
- 271
-
Actually, *not* changing/updating the local one is one of the most common reasons for duplicated Launcher icons. – Jacob Vlijm May 20 '15 at 13:46
-
All other .desktop items (except the custom alacarte .desktop file) are removed from ~/.local/share/applications and there are no duplicates in /usr/share/applications. I've deleted all default menus to make my own, and alacarte automatically makes a "duplicate" .desktop item which is visible in overview. I just want it in my alacarte menu, not in overview. – Maud Kon May 20 '15 at 13:56