Menu

in-bash format

Krzysztof Kamil Jacewicz

This page documents the format that Plasma Installer will recognize when embedded in a bash script as a code for controling the UI aspects.

All of the in-bash format will be visible to the bash interpreter as comment, but will be parsed by the Plasma Installer and interpreted as UI control commands. General formatting rules:

  • All of the in-bash commands must begin with a fixed prefix: "#Plasma." (dot included)
  • Following the prefix are internal objects of Plasma Installer, and their internal properties accessed by "." dot symbol, adding up to a property
  • a property is being assigned value by "=" operator

For example, to set 1st level (master) and 2nd level (slave) text in the footer, place this in your bash script:

#!/bin/sh
(...)
export USERNAME=$(whoami)
#Plasma.Footer1.Caption=Performing installation as $USERNAME
#Plasma.Footer2.Caption=Some_text_you_want_in_the_slave_footer
(...)

notice that you can use bash variables in the properties

Object list:

  • AppWindow - object representing the main window of the Plasma Installer application
    • Caption - property for setting the text on the app's title bar
  • Footer1 - object representing the 1st level (master) text in the footer section
    • Caption - property for setting the text displayed
  • Footer2 - object representing the 2nd level (detail) text in the footer section
    • Caption - property for setting the text displayed

MongoDB Logo MongoDB