unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 6b1168a0e91036bc3d404ce014355867cec662a3 980 bytes (raw)
name: gnu/packages/patches/syncplay-fix-typeerror.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
From b62b038cdf58c54205987dfc52ebf228505ad03b Mon Sep 17 00:00:00 2001
From: Etoh <etoh@syncplay.pl>
Date: Tue, 11 Apr 2023 20:22:52 +0100
Subject: [PATCH] Fix ArchLinux GUI TypeError (#600)

---
 syncplay/ui/gui.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py
index 7c100542..ca0f5d4a 100755
--- a/syncplay/ui/gui.py
+++ b/syncplay/ui/gui.py
@@ -2106,7 +2106,10 @@ def __init__(self, passedBar=None):
         if isMacOS():
             self.setWindowFlags(self.windowFlags())
         else:
-            self.setWindowFlags(self.windowFlags() & Qt.AA_DontUseNativeMenuBar)
+            try:    
+            	self.setWindowFlags(self.windowFlags() & Qt.AA_DontUseNativeMenuBar)
+            except TypeError:
+            	self.setWindowFlags(self.windowFlags())
         self.setWindowTitle("Syncplay v" + version + revision)
         self.mainLayout = QtWidgets.QVBoxLayout()
         self.addTopLayout(self)

debug log:

solving 6b1168a0e9 ...
found 6b1168a0e9 in https://yhetil.org/guix-patches/20230921203812.3649-2-aurtzy@gmail.com/

applying [1/1] https://yhetil.org/guix-patches/20230921203812.3649-2-aurtzy@gmail.com/
diff --git a/gnu/packages/patches/syncplay-fix-typeerror.patch b/gnu/packages/patches/syncplay-fix-typeerror.patch
new file mode 100644
index 0000000000..6b1168a0e9

1:25: trailing whitespace.
+            try:    
Checking patch gnu/packages/patches/syncplay-fix-typeerror.patch...
Applied patch gnu/packages/patches/syncplay-fix-typeerror.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 6b1168a0e91036bc3d404ce014355867cec662a3	gnu/packages/patches/syncplay-fix-typeerror.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).