]> git.pld-linux.org Git - packages/XcursorTheme.git/commitdiff
- do backup copy of index.theme,
authorTomasz Pala <gotar@pld-linux.org>
Thu, 1 Apr 2004 20:02:41 +0000 (20:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- I know what it was - ~/.Xdefaults or ~/.Xresources has had to already
  exist in order the script to work at all

Changed files:
    XcursorTheme-cursorconfig -> 1.3

XcursorTheme-cursorconfig

index c94ba16cdbdf795ea2f3bca70293a297da845ad3..6217af7db1b56851599bd58bcd521e2f40b660b4 100644 (file)
@@ -1,8 +1,9 @@
 #!/bin/sh
 
 alias nls='gettext -d cursorconfig'
+file=~/.icons/default/index.theme
 themes="core `ls -d /usr/share/icons/*/cursors | sed -e 's,/usr/share/icons/,,;s,/cursors,,'`"
-default=`grep -s Inherits ~/.icons/default/index.theme | cut -f2 -d=`
+default=`grep -s Inherits $file | cut -f2 -d=`
 [ -z $default ] || default="($default)"
 
 theme=`dialog --title 'Cursorconfig' \
@@ -13,5 +14,6 @@ theme=`dialog --title 'Cursorconfig' \
 [ -z $theme ] && exit 0
 
 mkdir -p ~/.icons/default || exit 1
-echo "[Icon Theme]" > ~/.icons/default/index.theme
-echo "Inherits=$theme" >> ~/.icons/default/index.theme
+[ -f $file ] && mv -f $file{,.old}
+echo "[Icon Theme]" > $file
+echo "Inherits=$theme" >> $file
This page took 0.062121 seconds and 4 git commands to generate.