Talk:Development Team/FAQ

How can a user start an activity from the command line?
How can a user start an activity from the command line without starting Sugar? Please supply a sample command.

Why? I'm tired of digging around for the error logs. I figured I could do something like sugar - run pippy 2>pippyerrors.txt

bemasc suggests less ~/.sugar/default/logs/org.whatever
 * Note the above command will take some messing around with to get what you want.

I have tried:

user@ubuntu:~/sugar-jhbuild$ ./sugar-jhbuild launch pippy sugar-jhbuild launch: command not found user@ubuntu:~/sugar-jhbuild$ ./sugar-jhbuild sugar - launch pippy sugar-jhbuild sugar: command not found user@ubuntu:~/sugar-jhbuild$ ./sugar-jhbuild pippy sugar-jhbuild pippy: command not found user@ubuntu:~/sugar-jhbuild$ ./sugar-jhbuild run pippy sugar-jhbuild run: Unable to execute the command 'pippy': [Errno 2] No such file or directory

And the response.

dgd: impossible. bemasc, ? not possible to run activities from jhbuild is that what you mean bemasc dgd: sugar activities cannot run outside of sugar, and more than a java applet can run outside of the JVM, or a flash applet can run outside of a flash interpreter. s/and/any/ ok, so running just the activity in sugar? just one activity, none of the home stuff etc. also not possible I thought for sure I read in the docs that you can run just an activity... by "not possible" I mean "requires you to modify the code for the Sugar shell". You can probably cause Sugar to launch and immediately start an activity. You might be able to do this using a .xsession script. However, users will still be able to bring up the frame and switch to the home view, etc.

Where are the activities stored?
Some users will find them here: /usr/share/sugar/activities/

Jhbuild users will find the activities here: ./install/share/sugar/activities/Calculate.activity/activity ./source/terminal/activity