Commit 2beebd9b authored by Vitezslav Humpa's avatar Vitezslav Humpa
Browse files

sniff: add fallback load for dogtail-head icon location

parent 99e8c58e
Pipeline #3398984 passed with stages
in 18 minutes and 47 seconds
......@@ -62,7 +62,10 @@ class SniffApp(object):
os.path.join(__file__, os.path.pardir, os.path.pardir))
if path is '/':
path = '/usr'
self.app.set_icon_from_file(os.path.join(path, 'share/icons/hicolor/scalable/apps/dogtail-head.svg'))
try:
self.app.set_icon_from_file(os.path.join(path, 'share/icons/hicolor/scalable/apps/dogtail-head.svg'))
except Exception: # fallback for wierd installations, when sniff is neither in /bin or /usr/bin
self.app.set_icon_from_file('/usr/share/icons/hicolor/scalable/apps/dogtail-head.svg')
self.setUpWidgets()
self.connectSignals()
self.app.show_all()
......
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