Unknown YCP Module |
This module has an unstable interface. |
Imports
Global VariablesGlobal Functions
Local VariablesLocal Functions |
File: modules/Desktop.ycp
Package: yast2
Summary: Handling of .desktop entries
Author: Michal Svec
YaST configuration modules
YaST configuration groups
Optional agent path to the desktop files
Optional language for reading translated entries
- Parameters:
-
fname keypath key
Internal function: set up the language variables.
Read module and group data from desktop files
- Parameters:
-
Values list of values to be parsed (empty to read all)
- Parameters:
-
key
- Parameters:
-
M
- Parameters:
-
group
- Parameters:
-
exec args
Runs a program by writing a special desktop file. Works with KDE and GNOME. Useful for kinternet, see bug 37864#c17
- Parameters:
-
exec program to exec (basename) args
Parses the a .desktop file it gets as a parameter without trying to use already cached information or agent to access all desktop files. This is optimized version to be used for rapid start of modules. Desktop file is placed in a special directory (/usr/share/applications/YaST2). Parameter file is relative to that directory without ".desktop" suffix. Warning: There are no desktop files in inst-sys.
- Parameters:
-
file desktop file name
- Return value:
-
filled with data, or nil
- Example
-
// Opens /usr/share/applications/YaST2/lan.desktop map
description = Desktop::ParseSingleDesktopFile ("lan"); Wizard::SetDialogTitle (description["Name"]:_("None));