ProjectAliceDev / aliceos-classic

A virtual operating system framework for Ren'Py projects
https://aliceos.app
GNU Lesser General Public License v3.0
7 stars 1 forks source link

Add launching capabilities to Applets #27

Closed alicerunsonfedora closed 5 years ago

alicerunsonfedora commented 5 years ago

Currently, desktop shells are unable to launch Applets as there is no way to definitively tell these shells what action will occur when launching them. To solve this problem and give desktop shells this functionality, I've added a new set of properties to the Applets framework:

# Define how your Applet will act with desktop shells.
launch = {
    "action": "Return(0)", # The action that happens when a user clicks the button
    "show_in_launcher": False # Whether it should appear in desktop shells
}

Update: Applets that act as desktop shells must include the pm_shell permission.