From 5c9b31a64c45ba0a01db3759610f0b9fe4f77516 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Sun, 7 May 2017 17:59:17 +0200 Subject: [PATCH] Check if logo exists --- src/manjaro_hello.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index ac09578..890d1a5 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -56,10 +56,11 @@ class ManjaroHello(): self.builder.get_object("headerbar").props.subtitle = subtitle # Load logo - logo = GdkPixbuf.Pixbuf.new_from_file(self.logo_path) - self.window.set_icon(logo) - self.builder.get_object("manjaroicon").set_from_pixbuf(logo) - self.builder.get_object("aboutdialog").set_logo(logo) + if os.path.isfile(self.logo_path): + logo = GdkPixbuf.Pixbuf.new_from_file(self.logo_path) + self.window.set_icon(logo) + self.builder.get_object("manjaroicon").set_from_pixbuf(logo) + self.builder.get_object("aboutdialog").set_logo(logo) # Create pages self.pages = ("readme", "release", "involved")