ACC SHELL
/**
* File: yast2_desktop.scr
* Summary: Agent for reading/writing yast2 .desktop files
* Author: Michal Svec <msvec@suse.cz>
* Access: read / write
*
* Example:
* Dir(.yast2.desktop)
* (["lan", "modem", "isdn", ...])
**
* Read(.yast2.desktop.lan)
* ("3")
*
* $Id: yast2_desktop.scr 26716 2005-12-22 07:46:40Z visnov $
*/
.yast2.desktop
`ag_ini(
`IniAgent( [ "/usr/share/applications/YaST2/*.desktop" ],
$[
"options" : [ ],
"comments" : [ "^[ \t]*[;#].*", ";.*", "\\{[^}]*\\}", "^[ \t]*$" ],
"sections" : [
$[ "begin" : [
"^[ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*",
"[%s]",
]],
],
"params" : [
$[ "match" : [
"^[ \t]*([^=]*[^ \t=])[ \t]*=[ \t]*(.*[^ \t]|)[ \t]*$" ,
"%s=%s",
]],
],
// "rewrite" : [
// [ "/usr/share/applications/YaST2/(.*)\.desktop", "/usr/share/applications/YaST2/%s.desktop" ],
// ],
]
)
)
ACC SHELL 2018