I have been trying to reproduce your problem, but cannot seem to. I did find a bug in the FLOSS manual chapter on modifying Sugar: the word wrap for the SVG was creating a break between "&" and "fill" that would cause the SVG to fail on ALL computers. When I fixed that, it worked on the XO and my Ubuntu laptop. The only other thing I could think of was that somehow the file permissions were wrong, so that the SVG could not be opened. I experimented with removing read permission on the file, but I did not get any icon in the Home View at all--a different symptom than you describe. But in any case, from the Terminal Activity, please run the command "ls -l /usr/share/icons/sugar/scalable/device" and look at the file permissions. They should be -rw-r--r--. If not, try chmod +r *.
Can you send your broken SVGs as attachments? thanks, -walter On Wed, Oct 22, 2008 at 9:06 AM, Walter Bender <[EMAIL PROTECTED]> wrote: > curious. I'll look into it. > > -walter > > On Wed, Oct 22, 2008 at 8:54 AM, Bill Kerr <[EMAIL PROTECTED]> wrote: >> http://en.flossmanuals.net/Sugar/ModifyingSugar >> >> I can't modify the xo icon with an svg file that I create outside of the xo >> and load with a USB key. >> >> Although I can modify the xo icon with an svg file, eg. camera.svg that is >> already in the folder /usr/share/icons/sugar/scalable/device >> >> I've tried different ways of making the svg file. Here are some of the files >> that haven't worked: >> >> square.svg (this one made by starting from the generic template found at >> http://wiki.laptop.org/go/Image:Icon_template.generic.svg) >> >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" >> "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"[ >> <!ENTITY stroke_color "#666666"> >> <!ENTITY fill_color "#FFFFFF"> >> ]> >> <svg xmlns="http://www.w3.org/2000/svg" width="55" height="55"> >> <rect x="5" y="5" width="45" height="45" stroke="&stroke_color;" >> fill="&fill_color;" stroke-width="3.5"/> >> </svg> >> >> >> sq2.svg (this one made by exporting the computer-xo icon and modifying) >> >> <?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' >> 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' [ >> <!ENTITY stroke_color "#010101"> >> <!ENTITY fill_color "#FFFFFF"> >> ]><svg enable-background="new 0 0 55 55" height="55px" version="1.1" >> viewBox="0 0 55 55" width="55px" x="0px" xml:space="preserve" >> xmlns="http://www.w3.org/2000/svg" >> xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"> >> <rect x="5" y="5" width="45" height="45" stroke="&stroke_color;" >> fill="&fill_color;" stroke-width="3.5"/> >> </svg> >> >> I can view these icons OK in firefox on another computer >> >> What happens on the xo is a blank space where the icon ought to be - but >> when I place the mouse in that space the drop down xo menu does appear, as >> though the icon is there but can't be seen >> >> Can anyone help with this? >> >> _______________________________________________ >> IAEP -- It's An Education Project (not a laptop project!) >> [email protected] >> http://lists.sugarlabs.org/listinfo/iaep >> > > > > -- > Walter Bender > Sugar Labs > http://www.sugarlabs.org > -- Walter Bender Sugar Labs http://www.sugarlabs.org _______________________________________________ IAEP -- It's An Education Project (not a laptop project!) [email protected] http://lists.sugarlabs.org/listinfo/iaep
