Skip to content

Commit c84faa3

Browse files
authored
cs_backgrounds.py: properly encode filename URI (#12945)
fixes: #9593
1 parent 0ba77b7 commit c84faa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ def on_wallpaper_selection_changed(self, iconview):
433433
if wallpaper:
434434
for key in wallpaper:
435435
if key == "filename":
436-
self._background_schema.set_string("picture-uri", "file://" + wallpaper[key])
436+
gfile = Gio.File.new_for_path(wallpaper[key])
437+
self._background_schema.set_string("picture-uri", gfile.get_uri())
437438
elif key == "options":
438439
self._background_schema.set_string("picture-options", wallpaper[key])
439440

0 commit comments

Comments
 (0)