The launcher and .desktop files

Colin Law clanlaw at googlemail.com
Sat Sep 21 16:00:06 UTC 2013


On 21 September 2013 15:51, Johny Provoost <johny.provoost at skynet.be> wrote:
>>> 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

I think that if it is only for one user to use then it is better to
put it in ~/.local/share/applications as that saves messing about with
sudo to create or edit them.  Once it is working then it can be moved
to /usr/share/applications if it is needed by other users.

Colin

> ---------------------------------------------------------------
> #!/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
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list