osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wrong icon


On 6 April 2018 at 02:53, rikona <rikona at sonic.net> wrote:
> On Thu, 5 Apr 2018 22:37:49 +0100
> Colin Law <clanlaw at gmail.com> wrote:
>
>> On 5 April 2018 at 22:06, rikona <rikona at sonic.net> wrote:
>> > ...
>> >> Is this 16.04 running Unity?
>> >
>> > Yes, but I do have KDE pgms and other pgms that I run.
>>
>> I was wondering whether it was a kde thing. Yes, most likely the
>> .desktop files have not got the Unity stuff there.
>
> What kind of unity stuff do they need to have? I'd be happy to add
> something if it would make these work correctly - just tell me what's
> missing. I have about a gazillion desktop files, but I did sample
> several of them located in a few different places. The Konqueror
> desktop file seems to have the same kind of things that all the other
> desktop files have in them. It does have an icon line naming the
> konqueror icon. This line seems to be in all the desktop files and
> gives the name of the icon that should be used. At first glance it
> doesn't seem as though there's anything missing...
>
> What I did notice, however, is that several KDE programs have their
> desktop files in a "KDE" subdirectory so that the KDE desktop files are
> not exactly in the same directory as all the other desktop files. Could
> it be that unity does not look in this KDE subdirectory and thus can't
> find the correct desktop file? If so, might it be that copying the
> desktop files in the subdirectory into the main directory might make
> them work? I'm rather hesitant to move around system-level files and
> thus did not try this out so far, but if you think it would be a safe
> experiment I'll try it.

I haven't used Unity for a while now, having moved on with the default
Ubuntu setup. However, if you want to see if the folder is relevant
then copy one of the desktop files to .local/share/applications. Edit
it and change the Name field.  That is what appears when you hover
over the icon so you will be able to tell which one you are using.
Then open .local/share/applications in nautilus and you should see it
there, then drag it to the launcher and run it from there.  You might
have to set the execute flag on the desktop file (or you might have to
take it off, I can't remember).

If that doesn't work then check in the desktop file that there is an
Icon specified and check it has
OnlyShowIn=Unity;
X-UnityGenerated=true
though actually I have not idea what those do, but mine seem to have them.
You could also try
StartupWMClass=whatever-the-name-of-the-executable-is
though again exactly what that does and what you should put in is
unclear to me.  I don' think there is any danger fiddling with these
though.  Perhaps some Unity guru can throw more light on this if
necessary

Colin

>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users