[Xfce4-commits] [apps/xfce4-screensaver] 01/02: Apply some fixes for various screensavers

noreply at xfce.org noreply at xfce.org
Sun Jul 14 00:01:56 CEST 2019


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 16d5fee5e2612ba50f5ce7133acc48332ec170e9
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Jul 13 18:01:29 2019 -0400

    Apply some fixes for various screensavers
---
 src/xfce4-screensaver-configure | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/xfce4-screensaver-configure b/src/xfce4-screensaver-configure
index 2a110f6..a481054 100755
--- a/src/xfce4-screensaver-configure
+++ b/src/xfce4-screensaver-configure
@@ -257,6 +257,14 @@ class XmlScreensaverSettings(ScreensaverSettings):
                     value = _(value)
             if key in ["arg", "arg-set", "arg-unset"]:
                 key = "argument"
+            if "#" in value:
+                tmp = value.split(" ")
+                parts = []
+                for piece in tmp:
+                    if piece.startswith("#"):
+                        piece = "'%s'" % piece
+                    parts.append(piece)
+                value = " ".join(parts)
             attributes[key] = value
 
         return attributes
@@ -572,6 +580,10 @@ class ConfigurationWindow(Gtk.Window):
                     if isinstance(argument, dict):
                         argument = argument[value]
                     elif "%" in argument:
+                        try:
+                            value = int(value)
+                        except:
+                            pass
                         argument = argument.replace("%", str(value))
                     arguments.append(argument)
         value = " ".join(arguments)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list