Changeset 638

Show
Ignore:
Timestamp:
06/23/08 13:09:03 (5 months ago)
Author:
free
Message:

Support for mandatory gconf values

Location:
cdd-utils/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • cdd-utils/trunk/debian/changelog

    r636 r638  
    1 cdd-utils (0.11.3) 64studio; urgency=low 
     1cdd-utils (0.11.4) 64studio; urgency=low 
    22 
    33  * Added Extensions option to touchscreen (needed by eneryXt) 
     
    55    qjackctl wrapper 
    66  * Restart qjackctl if it dies 
     7  * Support for mandatory gconf values 
    78 
    89 -- Trinity <trinity@trinity>  Wed, 18 Jun 2008 17:35:09 +0200 
  • cdd-utils/trunk/lib/desktop.sh

    r634 r638  
    208208 
    209209} 
     210 
     211# Description: Set maximum priority for GConf defaults 
     212# Depends: gconf2-common 
     213# 
     214gconf () { 
     215    cfg=/etc/gconf/2/path 
     216    comment="# Debian branding, including CDD or packaged branding" 
     217    entry="xml:readonly:/var/lib/gconf/debian.defaults" 
     218    position="include /etc/gconf/2/local-mandatory.path" 
     219 
     220    if ! exists $cfg; then warning "$cfg not found"; return; fi 
     221    del_key "$comment" $cfg 
     222    del_key "$entry" $cfg 
     223 
     224    sed -i -e "\|^$position| a $comment\n$entry" $cfg 
     225} 
     226