URI:
       tgtkrc trick for tomb icon backup properly - tomb - the crypto undertaker
  HTML git clone git://parazyd.org/tomb.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit fd8df548f45c81acdab9d6a06084c2156cdd97ad
   DIR parent b34d3795965beeb0a0f716b7b4b0a7a4c59e52cb
  HTML Author: Jaromil <jaromil@dyne.org>
       Date:   Tue, 15 Feb 2011 00:19:45 +0100
       
       gtkrc trick for tomb icon
       backup properly
       
       Diffstat:
         M src/tomb                            |      10 +++++++---
       
       1 file changed, 7 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/src/tomb b/src/tomb
       t@@ -164,7 +164,9 @@ ask_password() {
        
            # pinentry has no custom icon setting
            # so we need to temporary modify the gtk theme
       -    cp ~/.gtkrc-2.0 ~/.gtkrc-2.0.bak
       +    if [ -r ~/.gtkrc-2.0 ]; then
       +        cp ~/.gtkrc-2.0 ~/.gtkrc-2.0.tomb.bak
       +    fi
            cat <<EOF  >> ~/.gtkrc-2.0
            pixmap_path "/usr/local/share/pixmaps"
            style "normal" { stock["gtk-dialog-authentication"] = {{"monmort.xpm"}} }
       t@@ -179,8 +181,10 @@ GETPIN
        EOF
        
            # restore gtk as it was
       -    cp ~/.gtkrc-2.0.bak ~/.gtkrc-2.0
       -    rm ~/.gtkrc-2.0.bak
       +    if [ -r ~/.gtkrc-2.0.tomb.bak ]; then
       +        cp ~/.gtkrc-2.0.tomb.bak ~/.gtkrc-2.0
       +        rm ~/.gtkrc-2.0.tomb.bak
       +    fi
        
        }