Edit

IABSD.fr/ports/x11/xscreensaver/files/xscreensaver-config.xsl

Branch :

  • Show log

    Commit

  • Author : ajacoutot
    Date : 2008-11-29 11:29:07
    Hash : 64f3b1b8
    Message : - split xscreensaver into 3 subpackages: * -main for the main xscreensaver binaries * -data for the savers than can be shared by other screensavers (like the soon-to-be-imported gnome-screensaver) * -gle which is a migration of the no-no_gle FLAVOR - create .desktop files from xscreensaver xml files for use by freedesktop compliant screensavers (scripts from gnome-screensaver) - take maintainership - resolve old conflict with games/circuit inputs from jasper@, naddy@ and sthen@ ok sthen@ jasper@

  • x11/xscreensaver/files/xscreensaver-config.xsl
  • <?xml version='1.0'?>
    <!-- $OpenBSD: xscreensaver-config.xsl,v 1.1 2008/11/29 11:29:07 ajacoutot Exp $ -->
    <!-- file originally from gnome-screensavers sources -->
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    version="1.0">
    <xsl:output method="text" indent="no" />
    <xsl:strip-space elements="*"/>
    
    <xsl:template match="screensaver">
    [Desktop Entry]
    Encoding=UTF-8
    Name=<xsl:value-of select="@_label" />
    Comment=<xsl:value-of select="normalize-space(_description)" />
    <xsl:if test="count(command/@name) != 0">
    TryExec=<xsl:value-of select="normalize-space(command/@name)" />
    Exec=<xsl:value-of select="normalize-space(command/@name)" /><xsl:text> </xsl:text><xsl:value-of select="normalize-space(command/@arg)" />
    </xsl:if>
    <xsl:if test="count(command/@name) = 0">
    TryExec=<xsl:value-of select="normalize-space(@name)" />
    Exec=<xsl:value-of select="normalize-space(@name)" /><xsl:text> </xsl:text><xsl:value-of select="normalize-space(command/@arg)" />
    </xsl:if>
    StartupNotify=false
    Terminal=false
    Type=Application
    Categories=Screensaver;
    OnlyShowIn=GNOME;
    </xsl:template>
    
    </xsl:stylesheet>