summaryrefslogtreecommitdiffstats
path: root/snippets/config-kde-gnome-keyring.ks
blob: a36138555bca06eb5eae6c3da66636987b393954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# %post modifications to set up gnome-keyring in KDE

mkdir -p /etc/skel/.kde/env /etc/skel/.kde/shutdown
cat > /etc/skel/.kde/env/start-custom.sh << EOF
#!/bin/sh
eval \`gnome-keyring-daemon\`
export GNOME_KEYRING_PID
export GNOME_KEYRING_SOCKET
EOF
chmod 755 /etc/skel/.kde/env/start-custom.sh

cat > /etc/skel/.kde/shutdown/stop-custom.sh << EOF
#/bin/sh
if [-n "$GNOME_KEYRING_PID"]; then
	kill $GNOME_KEYRING_PID
fi
EOF

chmod 755 /etc/skel/.kde/shutdown/stop-custom.sh