The launcher and .desktop files

Johny Provoost johny.provoost at skynet.be
Sat Sep 21 14:51:05 UTC 2013


>> I compiled something and I want it in the launcher, so I ran the program,
>> right clicked new icon in the launcher, then ?Keep in the launcher? (or
>> something like that ? I run Ubuntu in Swedish).
>>
>> Now, the icon is named ?Namnl?st f?nster? (?Nameless window?) and the icon
>> is a question mark. Of course I want a proper icon and a proper name for it
>> and I guess clicking that ?Keep in launcher? thing created a .desktop file
>> for me somewhere, right?
>>
>> So where is it? I want to edit it? I searched for it but I didn't find it
>> because I don't know what to look for except .desktop. There is no .desktop
>> file in my system named ?Namnl?st f?nster? or anything that I can think of.
> I don't know whether that will have created a desktop file or not.  It
> might not be called that, the name that it shows is from the Name=
> entry in the file, not the name of the file.  If it did create one I
> would expect it to be in .local/share/applications.  The best thing is
> to make one there yourself.  Don't forget to make it executable.  Then
> you can run it from nautilus in that folder (or search in the Dash)
> and then pin it to the launcher.
>
> Colin
>
>
>
> ------------------------------
>
The '.desktop' files are on /usr/share/applications
Here an example of the desktop file of a program I created for myself
---------------------------------------------------------------
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Name=InfoBook 4.0
Comment=Zelf Gemaakt Programma
Exec="/home/johny/Gambas3/InfoBook4/InfoBook4.gambas"
Icon=/home/johny/Icons/address_book.png
Terminal=false
Type=Application
StartupNotify=true
Name[nl_BE]=InfoBook 4.0
-----------------------------------------------------------------------
once you have a .desktop file you can find it in the Dash, and then you 
when started you can pin it to the unity bar.


You can also try MyUnity (you find it in software center) to create a 
desktop file.

Johny






More information about the ubuntu-users mailing list