Skip to content

Commit 4bfc268

Browse files
authored
cs_info.py and org.cinnamon.gschema.xml: Fix undefined var and cleanup dconf strings (#11609)
1 parent 8ddf1a6 commit 4bfc268

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

data/org.cinnamon.gschema.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,6 @@
511511
<summary>The logo to use in the system info settings</summary>
512512
<description>
513513
An icon name or absolute path to an icon, which will be used for the system icon in the "System Info" settings app.
514-
.
515514
Disabled if no value is set.
516515
</description>
517516
</key>

files/usr/share/cinnamon/cinnamon-settings/modules/cs_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def on_module_selected(self):
175175
if systemIcon != "":
176176
try:
177177
if "/" in systemIcon:
178-
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale (systemIconPath, -1, 100, True)
178+
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(systemIcon, -1, 100, True)
179179
systemIcon = Gtk.Image.new_from_pixbuf(pixbuf)
180180
else:
181181
systemIcon = Gtk.Image.new_from_icon_name(systemIcon, Gtk.IconSize.DIALOG)
@@ -226,8 +226,8 @@ def on_copy_clipboard_button_clicked(self, button):
226226
subproc = Gio.Subprocess.new(['inxi', '-Fxxrzc0'], Gio.SubprocessFlags.STDOUT_PIPE | Gio.SubprocessFlags.STDERR_PIPE)
227227
subproc.wait_check_async(None, self.on_copy_clipboard_complete)
228228
except Exception as e:
229-
print ("An error occurred while copying the system information to clipboard")
230-
print (e)
229+
print("An error occurred while copying the system information to clipboard")
230+
print(e)
231231

232232
def on_copy_clipboard_complete(self, subproc, result):
233233
def _convert_stream_to_string(stream):

0 commit comments

Comments
 (0)