Commit 1589ff28 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Fix crash if icon theme is broken

parent 7e62ec90
Pipeline #45725 passed with stage
in 7 minutes and 47 seconds
......@@ -216,6 +216,8 @@ class Context:
icon_info = Gtk.IconTheme.get_default().lookup_icon(
icon_name, 22,
if icon_info is None:
filename = icon_info.get_filename()
if filename.endswith(".png"):
mime = "image/png"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment