Public bug reported: I had this file: ~/.local/share/applications/jetbrains-android- studio.desktop
whose content is: ----- [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Android Studio (Preview) 0.4.6 Icon=jetbrains-android-studio.png Path=/home/teo/ #Exec=/usr/lib/jvm/java-7-oracle/bin/java -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=96m -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Didea.project.structure.max.errors.to.show=0 -XX:+UseCodeCacheFlushing -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:+HeapDumpOnOutOfMemoryError -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=Documents/programmi/android-studio/bin/studio64.vmoptions -Xbootclasspath/a:Documents/programmi/android-studio/bin/../lib/boot.jar -Didea.paths.selector=AndroidStudioPreview -Didea.platform.prefix=AndroidStudio -Djb.restart.code=88 com.intellij.idea.Main Exec=/home/teo/Documents/programmi/android-studio/bin/studio.sh StartupNotify=false #StartupWMClass=jetbrains-android-studio OnlyShowIn=Unity; X-UnityGenerated=true ----- 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/share/applications/telegram.desktop 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/teo/Documents/programmi/Telegram/Telegram StartupNotify=true OnlyShowIn=Unity; X-UnityGenerated=true ----- 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.04.20140714-0ubuntu1.1 ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4 Uname: Linux 3.13.0-34-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.2 Architecture: amd64 CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins' 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) ** Affects: unity (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug trusty ** Attachment added: "Screenshot from 2014-09-16 20:03:43.png" https://bugs.launchpad.net/bugs/1370190/+attachment/4205676/+files/Screenshot%20from%202014-09-16%2020%3A03%3A43.png -- You received this bug notification because you are a member of DX Packages, which is subscribed to unity in Ubuntu. Matching subscriptions: dx-packages https://bugs.launchpad.net/bugs/1370190 Title: .desktop files in .local/share/applications not processed correctly Status in “unity” package in Ubuntu: New Bug description: I had this file: ~/.local/share/applications/jetbrains-android- studio.desktop whose content is: ----- [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Android Studio (Preview) 0.4.6 Icon=jetbrains-android-studio.png Path=/home/teo/ #Exec=/usr/lib/jvm/java-7-oracle/bin/java -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=96m -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Didea.project.structure.max.errors.to.show=0 -XX:+UseCodeCacheFlushing -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:+HeapDumpOnOutOfMemoryError -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=Documents/programmi/android-studio/bin/studio64.vmoptions -Xbootclasspath/a:Documents/programmi/android-studio/bin/../lib/boot.jar -Didea.paths.selector=AndroidStudioPreview -Didea.platform.prefix=AndroidStudio -Djb.restart.code=88 com.intellij.idea.Main Exec=/home/teo/Documents/programmi/android-studio/bin/studio.sh StartupNotify=false #StartupWMClass=jetbrains-android-studio OnlyShowIn=Unity; X-UnityGenerated=true ----- 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/share/applications/telegram.desktop 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/teo/Documents/programmi/Telegram/Telegram StartupNotify=true OnlyShowIn=Unity; X-UnityGenerated=true ----- 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.04.20140714-0ubuntu1.1 ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4 Uname: Linux 3.13.0-34-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.2 Architecture: amd64 CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins' 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) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1370190/+subscriptions -- Mailing list: https://launchpad.net/~dx-packages Post to : dx-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~dx-packages More help : https://help.launchpad.net/ListHelp