This method creates a shortcut of an app on your home screen - referencing to a js file runnable with DS.
Example - Demo
function OnStart()
{
var file = app.GetAppPath() + "/" + app.GetAppName() + ".js";
app.CreateShortcut( "Demo", "/Sys/Img/Icon.png", file );
app.ShowPopup( "Add Shortcut" );
}
def OnStart():
file = app.GetAppPath() + "/" + app.GetAppName() + ".js"
app.CreateShortcut( "Demo", "/Sys/Img/Icon.png", file )
app.ShowPopup( "Add Shortcut" )