.desktop files in .local/share/applications not processed correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
New
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I had this file: ~/.local/
whose content is:
-----
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Android Studio (Preview) 0.4.6
Icon=jetbrains-
Path=/home/teo/
#Exec=/
Exec=/home/
StartupNotify=false
#StartupWMClass
OnlyShowIn=Unity;
X-UnityGenerate
-----
I wanted to use this as a model for creating a desktop file for a completely unrelated application. So this is what I did:
I copied the file verbatim to ~/.local/
and then edited it. Its content now is:
-----
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Telegram Desktop
Path=/home/teo/
Exec=/home/
StartupNotify=true
OnlyShowIn=Unity;
X-UnityGenerate
-----
You can see that there's absolutely nothing in the first file that matches the string "telegram", and also you can see that the second file (the one called "telegram.desktop") has "Telegram Desktop" as its application name, NOT Android Studio, and doesn't contain anything related to "Android Studio".
So, the expected behavior is that if I type "Telegram" in the Dash, an item should be displayed under Applications, with the name Telegram Desktop, and with either the default icon embedded in the executable, if any, or some default icon.
Instead, I get this: see screenshot.
It looks like the list of applications got somehow "cached" when I created the new file, but it didn't get updated when I modified the file.
If I click on the wrongly-named "Android Studio (etc)" application, it does load the correct one, which is Telegram.
Perhaps this will be fixed at the next reboot, but it shouldn't take a reboot.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: unity 7.2.2+14.
ProcVersionSign
Uname: Linux 3.13.0-34-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CompizPlugins: No value set for `/apps/
CurrentDesktop: Unity
Date: Tue Sep 16 19:44:17 2014
InstallationDate: Installed on 2013-10-11 (340 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: unity
UpgradeStatus: Upgraded to trusty on 2014-05-24 (115 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.