Get the icon from activity not root
This commit is contained in:
parent
6971ddb9a4
commit
4c07e090fa
@ -23,8 +23,6 @@ class Bundle:
|
|||||||
self._valid = False
|
self._valid = False
|
||||||
|
|
||||||
def _parse_info(self, info_path):
|
def _parse_info(self, info_path):
|
||||||
base_path = os.path.dirname(info_path)
|
|
||||||
|
|
||||||
cp = ConfigParser()
|
cp = ConfigParser()
|
||||||
cp.read([info_path])
|
cp.read([info_path])
|
||||||
|
|
||||||
@ -57,7 +55,8 @@ class Bundle:
|
|||||||
if gtk.icon_theme_get_default().has_icon(icon):
|
if gtk.icon_theme_get_default().has_icon(icon):
|
||||||
self._icon = 'theme:' + icon
|
self._icon = 'theme:' + icon
|
||||||
else:
|
else:
|
||||||
self._icon = os.path.join(base_path, icon + ".svg")
|
activity_path = os.path.join(self._path, 'activity')
|
||||||
|
self._icon = os.path.join(activity_path, icon + ".svg")
|
||||||
|
|
||||||
if cp.has_option(section, 'activity_version'):
|
if cp.has_option(section, 'activity_version'):
|
||||||
self._activity_version = int(cp.get(section, 'activity_version'))
|
self._activity_version = int(cp.get(section, 'activity_version'))
|
||||||
|
Loading…
Reference in New Issue
Block a user