File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,22 @@ prepare_home ()
45
45
then
46
46
echo " #!/bin/bash" > $ERAWRIM_PATH /defaut/retire.sh;
47
47
echo " # Gestionnaire par défaut lors du retrait d'un Ztamp" >> $ERAWRIM_PATH /defaut/retire.sh;
48
+ cat >> $ERAWRIM_PATH /defaut/retire.sh << EOF
49
+ # Handle .authtag used by pam_reflect
50
+ # pam_reflect allows authentication when tag is inserted,
51
+ # and here, we manage to lock screen when tag is removed.
52
+ if [ -r $HOME /.authtag -a "$1 " = "` cat $HOME /.authtag` " ]
53
+ then
54
+ # Verrouiller l'écran
55
+ # Fonctionne pour le bureau Gnome
56
+ # gnome-screensaver-command -l
57
+
58
+ # Sur bureau récent
59
+ # dbus-send --session --dest=org.freedesktop.ScreenSaver \
60
+ # --type=method_call --print-reply /ScreenSaver \
61
+ # org.freedesktop.ScreenSaver.Lock
62
+ fi
63
+ EOF
48
64
fi ;
49
65
50
66
chmod +x $ERAWRIM_PATH /defaut/pose.sh $ERAWRIM_PATH /defaut/retire.sh
You can’t perform that action at this time.
0 commit comments