Art, <div><br></div><div>Based on my experience, installing activities with cp -r works fine -- <i>except</i> for some mimetypes.xml behavior:</div><div><br></div><div><meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 13px; "><div style="font-family: arial, sans-serif; ">
<font face="arial, helvetica, sans-serif">(1) Custom svg icons<span style="line-height: 16px; "> are not used in the journal for datastore entries.</span></font></div><div style="font-family: arial, sans-serif; "><font face="arial, helvetica, sans-serif"><span style="line-height: 16px; ">(2) Files dragged to usb are not given custom mimetype extensions.</span></font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="line-height: 16px;"><br></span></font></div></span><br><div class="gmail_quote">On Mon, Feb 14, 2011 at 5:21 PM, Art Hunkins <span dir="ltr"><<a href="mailto:abhunkin@uncg.edu">abhunkin@uncg.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff">
<div><font size="2" face="Arial">FWIW, I've experienced no problems simply copying
my activities into the Activities directory (from a USB drive). cp -r does just
fine.</font></div>
<div><font size="2" face="Arial"></font> </div><font color="#888888">
<div><font size="2" face="Arial">Art Hunkins</font></div>
</font><blockquote style="border-left:#000000 2px solid;padding-left:5px;padding-right:0px;margin-left:5px;margin-right:0px"><div class="im">
<div style="font:10pt arial">----- Original Message ----- </div>
<div style="font:10pt arial;background:#e4e4e4"><b>From:</b>
<a title="erikb@mediamods.com" href="mailto:erikb@mediamods.com" target="_blank">Erik
Blankinship</a> </div>
<div style="font:10pt arial"><b>To:</b> <a title="sugar-devel@lists.sugarlabs.org" href="mailto:sugar-devel@lists.sugarlabs.org" target="_blank">Sugar Devel</a> </div>
<div style="font:10pt arial"><b>Sent:</b> Monday, February 14, 2011 1:36
PM</div>
<div style="font:10pt arial"><b>Subject:</b> Re: [Sugar-devel] mime types
when moving files from journal to usb</div>
<div><br></div><font face="arial, helvetica, sans-serif"><br><br></font>
</div><div><div></div><div class="h5"><div class="gmail_quote"><font face="arial, helvetica, sans-serif">On Sat, Feb
12, 2011 at 8:18 PM, Erik Blankinship <span dir="ltr"><<a href="mailto:erikb@mediamods.com" target="_blank">erikb@mediamods.com</a>></span> wrote:<br></font>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><font face="arial, helvetica, sans-serif"><br><br></font>
<div class="gmail_quote">
<div><font face="arial, helvetica, sans-serif">On Fri, Feb 11, 2011 at 4:17
PM, Sascha Silbe <span dir="ltr"><<a href="mailto:sascha-ml-reply-to-2011-2@silbe.org" target="_blank">sascha-ml-reply-to-2011-2@silbe.org</a>></span>
wrote:<br></font>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><font face="arial, helvetica, sans-serif">Excerpts from
Erik Blankinship's message of Fri Feb 11 21:08:20 +0100 2011:<br></font>
<div><font face="arial, helvetica, sans-serif"><br>> I noticed there
were two svg icons in the physics activity directory:<br>>
application-x-physics-project.svg and
activity-physics.svg.<br>><br>> Is there now a way to assign an icon
to the files generated/used by my<br>> activity based on their
extension type?<br><br></font></div><font face="arial, helvetica, sans-serif">You already discovered that way. If
you ship your icons
as<br>activity/<primary_type>-<subtype>.svg Sugar will
automatically install<br>them [1].<br><br></font></blockquote>
<div><font face="arial, helvetica, sans-serif"><br></font></div></div>
<div><font face="arial, helvetica, sans-serif"><span style="line-height:17px;white-space:pre-wrap">Thank you for your help as
I try to get this to work.</span></font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div>
<div><font face="arial, helvetica, sans-serif">I must be doing something
wrong with mimetypes.xml. Here is a very small activity
that let's you click a button to save your game state.</font></div>
<div><a href="https://github.com/jedierikb/supes.activity" target="_blank"><font color="#000000" face="arial, helvetica, sans-serif">https://github.com/jedierikb/supes.activity</font></a></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div>
<div><font face="arial, helvetica, sans-serif">Things broken with this
activity:</font></div>
<div><font face="arial, helvetica, sans-serif">(1) The icon <span style="line-height:16px">application-x-supes-saved.svg is not used in
the journal for saved game files.</span></font></div>
<div><font face="arial, helvetica, sans-serif"><span style="line-height:16px">(2) Activity instance files dragged to usb are not
given the extension </span><span style="line-height:17px;white-space:pre-wrap">*.superduper</span></font></div>
<div><span style="line-height:17px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">(3) Saved game files dragged to usb are
not given the extension *.superduper_saved</font></span></div>
<div><font face="arial, helvetica, sans-serif"><span style="line-height:17px;white-space:pre-wrap"><br></span></font></div>
<div><font face="arial, helvetica, sans-serif"><span style="line-height:17px;white-space:pre-wrap">[note: trying this on olpc
10.1.3, sugar 84, but would like it to work with sugar
84+]</span></font></div></div></blockquote>
<div><font face="arial, helvetica, sans-serif"><br></font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div>
<div><font face="arial, helvetica, sans-serif">Got this working with the help
of alsroot on #sugar (thx!). Here are some notes for future
developers and documenters:</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div>
<div><font face="arial, helvetica, sans-serif">You cannot just copy your
activity into the ~/Activities directory. You have to install it as a .xo
bundle or using 'setup.py install' (note that the latter is tricky as the
command might get your paths messed up). This installation step will
create a file
--> ~/.local/share/mime/packages/<your-bundle_id>.xml</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div></div>
</div></div><p>
</p><hr><div class="im">
<p></p>_______________________________________________<br>Sugar-devel mailing
list<br><a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br><a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div><p></p></blockquote></div>
</blockquote></div><br></div>