This is the om-control-center for test
requires the following dependencies:
- htmlscript
to install htmlscript, we can use dnf:
dnf install htmlscript
you can run the om-control-center for debugging, with following command:
htmlscript -s 1020x600 -i /usr/share/icons/openmandriva.svg index.sh.htm 2> /dev/null;
- inside the folder
usr/share/om-control-center/
- there is a file called translation, all texts om-control-center are it is from it that will
- generate the translation files
- format it is as follows
variavel=$"text that will be shown in the om-control-center"
with the command
bash --dump-po-strings translation > om-control-center.pot
om-control-center.pot is the translation file.
htmlscript uses html, css and js to create the layout, if you want to make any changes or improvements just edit the files with the format. sh.htm, and style.css that is inside the css folder. files with the. scripts are run that will be read as if they were running through the terminal.
to execute a command within the html files (sh.htm) using the following command:
$(command to be executed)
example:
$(grep ^NAME /etc/os-release | cut -d"=" -f2-) #shows the name of the Linux distribution