Am Mittwoch, 5. Februar 2014 um 14:45:45, schrieb José Matos <jama...@lyx.org>
> On Tuesday 04 February 2014 19:15:31 Kornel Benko wrote:
> > If you are installing into /usr/local, then it should be /usr/local/share 
> > ...
> > It seems to be the same on ubuntu. But we need to know where the host 
> > system tries to find icons.
> > Is there a known method to get the info?
> 
> As far as I understand this is a freedesktop standard:
> http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
> 
> The part related with the icons can be found inside:
> http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#key-icon
> 
> From there we can follow to the "Icon Theme Specification"
> http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
> 
> That says at some point:
> 'In order to have a place for third party applications to install their icons 
> there should always exist a theme called "hicolor" '

The important thing I found there was directory layout.
        "Icons and themes are looked for in a set of directories. By default, 
apps should look in $HOME/.icons (for backwards compatibility), in 
$XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order)."

        
On ubuntu the value of XDG_DATA_DIRS is: 
/usr/share/gnome-classic:/usr/share/gnome:/usr/local/share/:/usr/share/
(I have ATM gnome session)
If given env(XDG_DATA_DIRS)
        We could check the lyx installation directory, and compare if it fits 
into some path
        from XDG_DATA_DIRS ending with /share/.
        (In this case /usr/local/ or /usr/)
        Use that path to form e.g. 
/usr/local/share/icons/hicolor/scalable/apps/lyx2.1.svg

        I try to create a cmake script for it.
else
        install as ever


> > > In the case of Fedora this is done manually as I am not aware of general 
> > > rules, but as Jean-Marc demonstrated above my knowledge here is limited 
> > > (with the limit tending to zero). 
> > 
> > Manually installing may be enough for us, but does not look very 
> > comfortable ... 
> 
> If you find a general way to this I will own you a beer. :-)

I don't count on it. Especially windows platform would be hard for me.

> > > Regards,
> > 

        Kornel
> 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to