mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-24 07:28:25 +00:00
gtkrc trick for tomb icon
backup properly
This commit is contained in:
parent
b34d379596
commit
fd8df548f4
10
src/tomb
10
src/tomb
@ -164,7 +164,9 @@ ask_password() {
|
|||||||
|
|
||||||
# pinentry has no custom icon setting
|
# pinentry has no custom icon setting
|
||||||
# so we need to temporary modify the gtk theme
|
# 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
|
cat <<EOF >> ~/.gtkrc-2.0
|
||||||
pixmap_path "/usr/local/share/pixmaps"
|
pixmap_path "/usr/local/share/pixmaps"
|
||||||
style "normal" { stock["gtk-dialog-authentication"] = {{"monmort.xpm"}} }
|
style "normal" { stock["gtk-dialog-authentication"] = {{"monmort.xpm"}} }
|
||||||
@ -179,8 +181,10 @@ GETPIN
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# restore gtk as it was
|
# restore gtk as it was
|
||||||
cp ~/.gtkrc-2.0.bak ~/.gtkrc-2.0
|
if [ -r ~/.gtkrc-2.0.tomb.bak ]; then
|
||||||
rm ~/.gtkrc-2.0.bak
|
cp ~/.gtkrc-2.0.tomb.bak ~/.gtkrc-2.0
|
||||||
|
rm ~/.gtkrc-2.0.tomb.bak
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user