Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have several .desktop files that I migrated over from 12.10 ubuntu. The applications they point to launch just fine, and the image displays in the dash when I search for them...but there isn't any text below the images when they show up in the dash, it's just the image. All other applications that were either installed by default, or installed through the software center show up just fine.

Here's a sample .desktop that I created:

[Desktop Entry]
Version=1.0
Name=Sublime Text 2
GenericName=Text Editor
Comment=Awesome Text Editor
Exec=/home/wes/Sublime\ Text\ 2/sublime_text
Icon=/home/wes/Sublime Text 2/Icon/128x128/sublime_text.png
Terminal=false
Type=Application

Here's what I mean:

No text for custom .desktop launcher

Edit: This is just one example of 2 or 3 .desktop files that I have created in the past, that worked as expected in 12.10, but all seem to be missing the application name in 13.04 (in the dash only). I don't think it is the icon size, as I have tried various different sizes (32x32, 64x64, 128x128, etc...).

share|improve this question
    
Try to lower picture's size to 64x64 and also include a Categories= entry. I assume Categories=GTK;Development;IDE; ? Logout-Login to see the changes. –  NikTh Jul 1 '13 at 1:43
    
@NikTh Yes, I have tried all of that, and for whatever reason it just doesn't want to work. Also, it is important to note that this is just one of them...I have 2 or 3 more custom .desktop files that all show up like this in the dash, some have larger icons, some are smaller than 64x64. I'm thinking it's a much more obscure issue. –  Wes Jul 1 '13 at 14:09

2 Answers 2

up vote 2 down vote accepted

I just ran into the same problem that you did. I messed around with a bunch of settings within my .desktop files to try to get the name to show up in the Unity launcher, since I had created the .desktop files in ~/Desktop then moved them to ~/.local/share/applications

All I had to do to get the Unity application launcher to show the names is log out of Ubuntu and log back in. Pretty lame, I know, but it worked.

At least this shows that in my case (and probably yours too) the .desktop files were not somehow wrong. After all, in my case, the desktop-file-validate program didn't list any errors. There was probably some name cache within Unity that needed to be cleared. It would be more satisfying to know how to do that without logging out, but this workaround is good enough for me for now. Hope this observation helps someone else!

share|improve this answer
    
Yeah, that was my experience as well. I could have sworn that I had relogged during my exploration into this issue and it didn't work. Then one day, after giving up on the issue, the power went out in my house, and on reboot the desktop entries were displaying perfectly fine in Unity. –  Wes Jul 19 '13 at 18:28

Search in Dash for alacarte to open Main Menu:

alacarte

In Main Menu search for the application that doesn't have name in Dash. When you find it, click Properties and give it a name (in your case Sublime Text 2 application, in my case Ask Ubuntu web application):

enter image description here

share|improve this answer
    
Thanks, for the input, but this does not answer my question at all. I am well aware there are interfaces to create custom launchers, but my question is "Why does my custom .desktop file not display the application's name?". –  Wes Jul 1 '13 at 18:07
    
@Wes Because of this. Just search your application in Main Menu and you will see that has no name. I experimented the same situation. –  Radu Rădeanu Jul 1 '13 at 18:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.