Skip to content

OpenMandrivaSoftware/om-control-center

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Languages

  • Shell 44.6%
  • JavaScript 35.1%
  • CSS 14.0%
  • HTML 4.9%
  • Makefile 1.4%