guix-commits
[Top][All Lists]
Advanced

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

04/07: gnu: sugar: Patch brightness module.


From: guix-commits
Subject: 04/07: gnu: sugar: Patch brightness module.
Date: Mon, 27 Feb 2023 10:37:34 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 596a4db9f99e49d87aa4ee44b7c5fad0c4da0adc
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Feb 27 16:10:45 2023 +0100

    gnu: sugar: Patch brightness module.
    
    * gnu/packages/sugar.scm (sugar)[arguments]: Fix syntax error; disable
    brightness module.
---
 gnu/packages/sugar.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 7cfdf49b14..dc1dc912a0 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -95,6 +95,15 @@
                  (dirname
                   (search-input-file inputs
                                      
"/share/mobile-broadband-provider-info/serviceproviders.xml"))))
+              ;; XXX: spawn_command_line_sync is not used correctly here, so
+              ;; we need to patch invocations.
+              (substitute* '("extensions/cpsection/aboutcomputer/model.py"
+                             "src/jarabe/model/brightness.py")
+                (("spawn_command_line_sync\\(cmd\\)")
+                 "spawn_command_line_sync(cmd, 0)"))
+              ;; XXX: The brightness component crashes, so we disable it here.
+              (substitute* "src/jarabe/main.py"
+                (("brightness.get_instance\\(\\)") ""))
               ;; TODO: these locations should be set to places that exist on
               ;; Guix System.
               #;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]