Skip to content

Commit

Permalink
honour --icon-path option parameter see issue #55
Browse files Browse the repository at this point in the history
  • Loading branch information
anaselli committed Jun 4, 2020
1 parent 71aebe3 commit e349a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnfdragora/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def __init__(self, options={}):
if 'icon-path' in options.keys() :
icon_path = options['icon-path']
if icon_path.endswith('/'):
icon_path = icon_path + 'dnfdragora.png'
icon_path = icon_path + 'dnfdragora.svg' if ( os.path.exists(icon_path + 'dnfdragora.svg') ) else icon_path + 'dnfdragora.png'
else:
icon_path = icon_path + '/dnfdragora.png'
icon_path = icon_path + '/dnfdragora.svg' if ( os.path.exists(icon_path + '/dnfdragora.svg') ) else icon_path + '/dnfdragora.png'

theme_icon_pathname = icon_path if 'icon-path' in options.keys() else self.__get_theme_icon_pathname() or icon_path

Expand Down

0 comments on commit e349a73

Please sign in to comment.