<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY 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>
<DIV><FONT size=2 face=Arial>Art Hunkins</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=erikb@mediamods.com href="mailto:erikb@mediamods.com">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">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 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 class=Apple-style-span
face="arial, helvetica, sans-serif"><BR></FONT></DIV></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Sugar-devel mailing
list<BR>Sugar-devel@lists.sugarlabs.org<BR>http://lists.sugarlabs.org/listinfo/sugar-devel<BR></BLOCKQUOTE></BODY></HTML>