<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Luxi Sans'; font-size:11pt; font-weight:400; font-style:normal;">Hi Bert,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I finally did some investigation into Squeak interaction with DBus and<br />Datastore. I went through the classes that implement the DBus and Datastore<br />interaction. This is some great stuff! Among others, if I understand this correctly, your Squeak DBus client framework could, for example, allow to use Squeak to write a KDE or gnome panel applet? But that is an aside.<br /><br />As Step 1, my goal was to figure out how to save a project in Journal from a set of commands in Workspace. Going to the debugger, I found that if I open a project in Etoys, and in a workspace, and do<br /><br />       Project current storeOnServerWithNoInteractionThenQuit.<br /><br />the project is saved in Journal, and on restart, Etoys must have read<br />the Journal saved project because it shows any changes I have made in<br />the project. It seems that the core method called from<br />storeOnServerWithNoInteractionThenQuit that interacts with Datastore is<br /><br />       SugarDatastoreDirectory&gt;&gt; #writeProject: self<br />                                       inFileNamed: fileName<br />                                       fromDirectory: localDirectory<br /><br />So I tried to do the the same (Project current storeOnServerWithNoInteractionThenQuit.) from a workspace in the FreeCell activity. When performed,  it does write to the Journal, but upon restart, I get an exception that appears a DBus object cannot be found  -<br />picture attached.<br>
<br /><br />Could the difference be it because Freecell, on startup, does not<br />setup some DBus interaction?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Well in any case, I am looking for some help trying to figure this out. I was thinking about these steps I'd like to achieve:<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>        1) Command in Workspace that saves the FreeCell project on Journal. I seem to be able to do that, but on fairly high level ( Project current storeOnServerWithNoInteractionThenQuit.). Eventually I'd like to get it done with more but lower level commands.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>        2) Sure and understood way to open the saved Journal Project in FreeCell. (So far within Etoys it seems to work, but I have little understanding of it. In FreeCell it does not)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>        3) A command or set of commands in workspace, which wil allow to Rename the FreeCell project (and save on Journal under the new name)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>        4) Ability to start using the black Launcher ribbon on top, with the standard Etoys project name a project stop widget that would call the commands from 1 and 2. .<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>        5) More interaction such as copy/paste on Journal<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Do these goals and order make sense?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I will try to maintain a blog about what I am playing with. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>http://mzimmerm.blogspot.com/2009/05/how-to-install-and-run-sugar-activity.html<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I am unfortunately frustratingly slow and sometimes fail to respond for a long time, combination of lack of time and experience in this area (Squeak/DBus/Sugar), but will keep going... Appreciate any help.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Milan</p></body></html>