[Bugs] #4605 Sugar URGE: "View Source" crashes in every activity
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Wed Aug 21 08:11:48 EDT 2013
#4605: "View Source" crashes in every activity
--------------------------+-------------------------------
Reporter: manuq | Owner: manuq
Type: defect | Status: new
Priority: Urgent | Milestone: Unspecified
Component: Sugar | Version: Unspecified
Severity: Unspecified | Resolution:
Keywords: | Distribution/OS: Unspecified
Bug Status: New |
--------------------------+-------------------------------
\
\
\
\
\
\
Comment (by erikos):
This is an issue because View Source tries to display the gtk2 sugar-
toolkit, which is not present anymore in sugar-build. You can see this by
displaying the gtk3 toolkit, like:
{{{
diff --git a/src/jarabe/view/viewsource.py b/src/jarabe/view/viewsource.py
index 99b9c9d..a486005 100644
--- a/src/jarabe/view/viewsource.py
+++ b/src/jarabe/view/viewsource.py
@@ -101,8 +101,8 @@ def setup_view_source(activity):
sugar_toolkit_path = None
for path in sys.path:
if path.endswith('site-packages'):
- if os.path.exists(os.path.join(path, 'sugar')):
- sugar_toolkit_path = os.path.join(path, 'sugar')
+ if os.path.exists(os.path.join(path, 'sugar3')):
+ sugar_toolkit_path = os.path.join(path, 'sugar3')
break
view_source = ViewSource(window_xid, bundle_path, document_path,
}}}
A more fallback proven fix would be to fallback on the gtk2 toolkit if the
gtk3 one is not available.
\
\
\
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4605#comment:4>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list