From dd4ba1c44a1f062efd84a3f32124bf1300773ef1 Mon Sep 17 00:00:00 2001
From: Klismann Smoger Mottin <ksm09@inf.ufpr.br>
Date: Tue, 28 Aug 2012 11:22:54 -0300
Subject: [PATCH] le-light-interface: Add code to remove gnome-keyring

Adds a shell script, that executes when the X starts, that removes the
gnome-keyring dialog when using certain applications.
---
 le-light-interface/VERSAO                     |  2 +-
 .../pacote/etc/kde4/kdm/Xstartup              |  7 ++++-
 .../pacote/etc/skel/.gnome2/keyrings/default  |  1 +
 .../etc/skel/.gnome2/keyrings/default.keyring |  9 ++++++
 .../local/bin/le-interface-gnome-keyring.sh   | 28 +++++++++++++++++++
 5 files changed, 45 insertions(+), 2 deletions(-)
 create mode 100644 le-light-interface/pacote/etc/skel/.gnome2/keyrings/default
 create mode 100644 le-light-interface/pacote/etc/skel/.gnome2/keyrings/default.keyring
 create mode 100755 le-light-interface/pacote/usr/local/bin/le-interface-gnome-keyring.sh

diff --git a/le-light-interface/VERSAO b/le-light-interface/VERSAO
index 524cb5524..781dcb07c 100644
--- a/le-light-interface/VERSAO
+++ b/le-light-interface/VERSAO
@@ -1 +1 @@
-1.1.1
+1.1.3
diff --git a/le-light-interface/pacote/etc/kde4/kdm/Xstartup b/le-light-interface/pacote/etc/kde4/kdm/Xstartup
index 984df5122..80109980a 100755
--- a/le-light-interface/pacote/etc/kde4/kdm/Xstartup
+++ b/le-light-interface/pacote/etc/kde4/kdm/Xstartup
@@ -14,6 +14,9 @@ if [ -e /etc/nologin ]; then
   fi
 fi
 
+# Execute Intel Theft Deterrent Agent
+exec  theftdeterrent &
+
 # Invoke LE scripts
 
 # Paths
@@ -30,6 +33,7 @@ MENU=le-interface-menus.sh
 VIA=le-interface-via-fix.sh
 NETWORK=le-interface-network.sh
 NETCONFIG=le-netconfig.sh
+GNOMEKEYRING=le-interface-gnome-keyring.sh
 
 # Scripts lists for non-freeze and freeze users, and a commom scripts list
 COMMONSCRIPTS="
@@ -38,7 +42,8 @@ COMMONSCRIPTS="
  $SHPATH/$EDUBAR \
  $SHPATH/$VIA \
  $SHPATH/$NETWORK \
- $SHPATH/$NETCONFIG
+ $SHPATH/$NETCONFIG \
+ $SHPATH/$GNOMEKEYRING
  "
 
 NFSCRIPTS="
diff --git a/le-light-interface/pacote/etc/skel/.gnome2/keyrings/default b/le-light-interface/pacote/etc/skel/.gnome2/keyrings/default
new file mode 100644
index 000000000..4ad96d515
--- /dev/null
+++ b/le-light-interface/pacote/etc/skel/.gnome2/keyrings/default
@@ -0,0 +1 @@
+default
diff --git a/le-light-interface/pacote/etc/skel/.gnome2/keyrings/default.keyring b/le-light-interface/pacote/etc/skel/.gnome2/keyrings/default.keyring
new file mode 100644
index 000000000..8bc6e2c1e
--- /dev/null
+++ b/le-light-interface/pacote/etc/skel/.gnome2/keyrings/default.keyring
@@ -0,0 +1,9 @@
+
+[keyring]
+display-name=PadrĂ£o
+ctime=0
+mtime=0
+lock-on-idle=false
+lock-after=false
+
+
diff --git a/le-light-interface/pacote/usr/local/bin/le-interface-gnome-keyring.sh b/le-light-interface/pacote/usr/local/bin/le-interface-gnome-keyring.sh
new file mode 100755
index 000000000..e6a8e5ade
--- /dev/null
+++ b/le-light-interface/pacote/usr/local/bin/le-interface-gnome-keyring.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+#
+# Copyright (C) 2004-2012 Centro de Computacao Cientifica e Software Livre
+# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+#
+# This file is part of le-interface
+#
+# le-interface is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
+
+# Removes gnome-keyring at login
+if ! test -f "$HOME/.gnome2/keyrings/default.keyring"; then
+    cp -r /etc/skel/.gnome2 "$HOME"
+    chown -R --reference="$HOME" "$HOME/.gnome2"
+fi
+
-- 
GitLab