Changeset 627

Show
Ignore:
Timestamp:
06/18/08 16:36:49 (3 months ago)
Author:
free
Message:

* Added Extensions option to touchscreen (needed by eneryXt)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cdd-utils/trunk/debian/changelog

    r624 r627  
     1cdd-utils (0.11.1) 64studio; urgency=low 
     2 
     3  * Added Extensions option to touchscreen (needed by eneryXt) 
     4 
     5 -- Trinity <trinity@trinity>  Wed, 18 Jun 2008 17:35:09 +0200 
     6 
    17cdd-utils (0.11) 64studio; urgency=low 
    28 
  • cdd-utils/trunk/lib/desktop.sh

    r580 r627  
    170170 
    171171    cat <<EOF >> $cfg 
    172  
    173172Section "InputDevice" 
    174173        Identifier "touchscreen" 
     
    194193EndSection 
    195194EOF 
    196 
     195 
     196    perl -e 'open(FILE, "/etc/X11/xorg.conf"); while ($line = <FILE>) {if ($line =~ /^Section "Extensions"/) {$buffer = $line;$flag = 0;until ($line =~ /^EndSection/) {$line = <FILE>; $buffer .= $line; if ($line =~ /^.*Option "MIT-SHM"/) {$flag = 1;};}; if ($flag == 0) {print $buffer;};} else {print "$line";};};close(FILE);'> $cfg.tmp 
     197    mv $cfg.tmp $cfg 
     198    if [ -z "$(tail -1 $cfg)" ]; then 
     199        sed '$d' < $cfg > $cfg.tmp 
     200        mv $cfg.tmp $cfg 
     201    fi 
     202 
     203    cat <<EOF >> $cfg 
     204Section "Extensions" 
     205       Option "MIT-SHM" "no" 
     206EndSection 
     207EOF 
     208 
     209