YaST2 Developers Documentation: yast2



functions
files
intro

yast2

modules/Desktop.ycp
Handling of .dektop entries Author: Michal Svec

Imports

  • Map

Global Variables

Global Functions

Local Variables

Local Functions

global Modules -> map<string,map>

YaST configuration modules

global Groups -> map<string,map>

YaST configuration groups

    Groups=$[
	"Hardware":$[
	    "Icon":"hardware56.png",
	    "Name":"_(\"Hardware\")",
	    "SortKey":"20",
	    "Textdomain":"base",
	    "modules":["cdrom", "hwinfo", ...]
	],
	...
   ];
 

global AgentPath -> path

Optional agent path to the desktop files

local Language -> string

Optional language for reading translated entries

local ReadLocalizedKey (path keypath, string key) -> string

Parameters:
keypath
key

global Read (list<string> Values) -> void

Read module and group data from desktop files

Parameters:
Values list of values to be parsed (empty to read all)

global Translate (string key) -> string

Parameters:
key

local CreateList (map M) -> list <term>

Parameters:
M

global GroupList () -> list <term>

global ModuleList (string group) -> list <term>

Parameters:
group

YaST2 Developers Documentation