Changes

Fix up bits about bundle directory names and sugar
Line 6: Line 6:     
= Location =
 
= Location =
Activities are installed and removed automatically by [[Sugar]], in response to user actions.  Sugar places activities in directory of its choice, currently $(prefix)/share/sugar/activities.  Activities should not rely on being installed in a specific location, and should use relative paths where paths are necessary (i.e., for shared library linkage, activity resources such as images, sounds, etc).  Sugar will automatically generate and remove the .service files necessary to launch the activity through D-Bus service activation when the activity is installed or removed.
+
Activities are installed and removed automatically by [[Sugar]], in response to user actions.  Sugar places activities in directory of its choice.  Activities should not rely on being installed in a specific location, and should use relative paths where paths are necessary (i.e., for shared library linkage, activity resources such as images, sounds, etc).  They should also not rely on the bundle's base directory name remaining the same.  Sugar may rename the activity bundle base directory at any time to prevent bundle conflicts.
 +
 
 +
Sugar will automatically generate and remove the .service files necessary to launch the activity through D-Bus service activation when the activity is installed or removed.
    
Activities should also NEVER store local state or preferences in the activity bundle itself.  These should always be stored in an activity-specific directory in the user's sugar profile, available through the SUGAR_PROFILE environment variable.
 
Activities should also NEVER store local state or preferences in the activity bundle itself.  These should always be stored in an activity-specific directory in the user's sugar profile, available through the SUGAR_PROFILE environment variable.
Line 24: Line 26:     
The 'localized' directory contains localizations of the activity bundle's name.  It must be present.
 
The 'localized' directory contains localizations of the activity bundle's name.  It must be present.
  −
Activities should _NOT_ rely on the activity bundle's base directory name (in this case, "Web.activity") being remaining the same.  Sugar may rename the activity bundle base directory at any time to prevent bundle conflicts.
      
= .info File Format =
 
= .info File Format =
Line 41: Line 41:  
  python_module = BrowserActivity.BrowserActivity
 
  python_module = BrowserActivity.BrowserActivity
 
  exec = super-duper-web-browser
 
  exec = super-duper-web-browser
default_type = _web_olpc._udp
   
  show_launcher = yes
 
  show_launcher = yes
  
Anonymous user