Advertise Webp support in desktop file. - #15
Conversation
|
i was thinking of adding a macro on the makefile for the full webp support pr, so that if nsxiv isn't compiled with webp support then it won't be advertised on the .desktop file |
|
Sxiv doesn't have webp compile option, imlib2 does. |
|
so we leave undoing this to the mantainers of the distros where imlib2 isn't compiled with webp support? |
|
Is there a simple way to check if |
We could just have a HAS_WEBP flag for now that builders can manually set. If set to 1, then we add webp to the desktop file. Off hand I don't know of a portable way to check imlib2 compile objects, but there should be plenty of package manager specific solutions like checking the dependencies of imlib2.
Also if the desktop file isn't going to be completely static, may I suggest having a template and then creating and installing the real via the Makefile |
I think we should leave this upto the distro maintainers. And in the case of a source based distro, the user. |
See: xyb3rt/sxiv#411