OpenMandrivaSoftware / om-control-center

OpenMandriva Lx Control Center

Home Page:https://openmandriva.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

om-control-center

This is the om-control-center for test

requires the following dependencies:

  • htmlscript
Installing Dependencies

to install htmlscript, we can use dnf:

dnf install htmlscript
Running om-control-center

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;
Translations
  • 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

About

OpenMandriva Lx Control Center

https://openmandriva.org

License:GNU General Public License v2.0


Languages

Language:Shell 44.9%Language:JavaScript 34.9%Language:CSS 13.9%Language:HTML 4.9%Language:Makefile 1.4%