desktop¶
Ist ein OpenSLX-Plugin. Dieses Plugin wird für die grafischen Xorg-Oberflächen (KDM GDM & Co) benötigt Es gibt einige Plugins die darauf aufbauen (ua vmchooser und vmware) Es ist auf ein installiertes xserver-Plugin angewiesen.
Beschreibung¶
Desktop Plugin (Gerüst, muss noch ausgefüllt werden)
Das Plugin schreibt die Xreset (Originalname bei xdm evtl. abweichend, siehe dazu die Konfigurationsdateien der Displaymanager) Skripten der jeweiligen Distribution so um, dass alle User-Dateien in /tmp gelöscht werden. Das soll das Überlaufen des Temp-Verzeichnisses verhindern (besonders, falls dieses im RAM liegt) und die Systemsicherheit erhöhen.
Themes¶
Um zusätzliche Themes neben dem klassischen OpenSLX Theme zu installieren, müssen diese im Konfig-Pfad (slx-settings |grep config-path) unter <config-path>/plugins/desktop/themes/{gdm,kdm}/<name> (also in der Regel /etc/opt/openslx/plugins/..). Um dann das neue Theme auswählbar für ein System zu machne muss es im VendorOS in den supported_themes vertreten sein. Dies wird erreicht duch das erneute Installieren des Plugins mit dem parameter desktop::supported_themes.
slxos-plugin install <system> desktop desktop::supported_themes=openslx,<name des neuen themes>
Danach kann das neue Theme durch folgenden Befehl aktiviert werden:
slxconfig change-system <system>::<exporttype> desktop::theme=<name des neuen themes>
Optionen¶
linux:~ # slxos-plugin list-attributes --verbose desktop
List of attributes supported by 'desktop' plugin:
[stage 1]: desktop::gdm
description: should gdm be available (installed in vendor-OS)?
content_descr: "0", "1" or "-" (for unset)
[stage 1]: desktop::gnome
description: should gnome be available (installed in vendor-OS)?
content_descr: "0", "1" or "-" (for unset)
[stage 1]: desktop::kde
description: should kde be available (installed in vendor-OS)?
content_descr: "0", "1" or "-" (for unset)
[stage 1]: desktop::kdm
description: should kdm be available (installed in vendor-OS)?
content_descr: "0", "1" or "-" (for unset)
[stage 1]: desktop::supported_themes
description: name of all themes that shall be installed in vendor-OS (such
that they can be selected via 'desktop::theme' in stage 3).
content_descr: a comma-separated list of theme names
[stage 1]: desktop::xdm
description: should xdm be available (installed in vendor-OS)?
content_descr: "0", "1" or "-" (for unset)
[stage 1]: desktop::xfce
description: should xfce be available (installed in vendor-OS)?
content_descr: "0", "1" or "-" (for unset)
[stage 3]: desktop::active
description: should the 'desktop'-plugin be executed during boot?
content_descr: 1 means active - 0 means inactive
[stage 3]: desktop::allowshutdown
description: allow shutdown of the SLX client via gdm/kdm. "none" disables
this functionality, "root" allows only the sysadmin and
"users" means free4all.
content_descr: possible entries "none", "root" or "users"
[stage 3]: desktop::kind
description: which desktop environment shall be used: gnome, kde, or xfce?
content_descr: "gnome", "kde" or "xfce"
[stage 3]: desktop::manager
description: which display manager to start: gdm, kdm or xdm?
content_descr: "gdm", "kdm" or "xdm"
[stage 3]: desktop::mode
description: which type of operation mode shall be activated:
workstattion, kiosk or chooser?
content_descr: "workstation", "kiosk" or "chooser"
[stage 3]: desktop::rootlogin
description: allow the system administrator to logon to the graphical
user interface (1 allow, 0 disallow).
content_descr: 1 means allowed - 0 means forbidden
[stage 3]: desktop::theme
description: name of the theme to apply to the desktop (unset for no theme)
content_descr: one of the entries in "supported_themes"
automatic distro image in theme¶
The desktop plugins is creating a link from /etc/distro.png to the logo img (a 120x120px png image) of the currently
running distribution. The distro logos itself are placed under /opt/openslx/plugin-repo/dekstop/themes/common.
To embed the distro logo in your theme just add the following code snipplet at the and of your theme.xml before the</greeter> line.
<item type="pixmap" id="distro_logo" button="false">
<normal file="/etc/distro.png"/>
<pos anchor="se" x="99%" y="99%"/>
</item>