Pierre Hébert

Pierre Hébert

Is it possible for a script compiled in an apk, to be executed at llx start (without user interaction if possible) ?

(to load vars or functions in a personal namespace, then use them in other scripts launched at other time..) 

]]>

10 Commentsto Pierre Hébert

  1. Anonymous says:

    < ![CDATA[

    No, APKs are only used to ship scripts. They are not exactly plugins. I don’t wish to change the behavior of the app only by installing a package. I prefer an explicit user confirmation through “installation” of the script shipped through the APK.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    So the user need to go to the event settings, then he will found our script in the list of scripts ? 

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Not necessarily, but it need to install the script (Scripts menu / Load a script) first. From there the loaded script can do everything, including setting the load event to run another script for instance.


    A script in an APK can install other scripts and configure everything, but the user has to accept this by explicitly loading it.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Ah ok, coool ! 😉


    Are the scripts in the apk can be access in the llx script editor? Or are they “private” to the apk? 

    ]]>

  5. Anonymous says:

    < ![CDATA[

    That’s configurable: as the APK author, you can choose to run the script, then remove it afterward: that’s good for some initial setup. Or you can choose to only load the script without executing it, and leave it in the launcher: that’s good for utility scripts.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Ok, so:


    If my apk load a script that loads another one (A), and set it to the “desktop event”, the user will need to restart the launcher to get the changes (A to be executed) ? And will the script A be available in the llx script editor?, can we hide a script to avoid any modification? (not very good but is it possible?

    ]]>

  7. Anonymous says:

    < ![CDATA[

    It is up to the “setup” script to execute A if it needs to be executed once after install.


    Scripts can’t be hidden, for “security” purpose. This is not possible to hide scripts, they can be read from the APK anyway. Hiding would only limit the mess in the launcher list, but that’s all.


    You can obfuscate/minify them though.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Yes that’s right, I’ve a little feature request (in many others) for the llx script editor :


    Add a checkbox to be able to see the scripts contain in apks (maybe sorted be apk’s name). Then when the user wants to edit the scripts, warn him with a “this script is contaned in an apk, do you really want to edit it?”. And if that user want to edit it, more than 3 time in a short while, maybe add a “don’t remind me for 1day” (for example)

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Scripts are not executed from an APK. They are copied from the APK inside the launcher storage. From this moment, the APK can be uninstalled (and the scripts can be modified by the way).

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Aaah ok, it’s just to avoid tge copy/paste and configuration for one or more script!



    Thanks for your answers!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *