summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJoe Sapp <nixphoeni@gentoo.org>2010-05-08 19:04:04 +0000
committerJoe Sapp <nixphoeni@gentoo.org>2010-05-08 19:04:04 +0000
commit1a40f1509b8f8e9e6fbcb96c1db308206d080819 (patch)
tree0d4083a9b7916e62301ed3df5836e8d055a63c83 /eclass
parentRemove old version and cleanup files/ (diff)
downloadgentoo-2-1a40f1509b8f8e9e6fbcb96c1db308206d080819.tar.gz
gentoo-2-1a40f1509b8f8e9e6fbcb96c1db308206d080819.tar.bz2
gentoo-2-1a40f1509b8f8e9e6fbcb96c1db308206d080819.zip
Tried to fix bug #314653
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gdesklets.eclass10
1 files changed, 2 insertions, 8 deletions
diff --git a/eclass/gdesklets.eclass b/eclass/gdesklets.eclass
index df0b643a5064..152bfa8e909d 100644
--- a/eclass/gdesklets.eclass
+++ b/eclass/gdesklets.eclass
@@ -1,6 +1,6 @@
# Copyright 2004-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.18 2009/05/13 02:11:24 nixphoeni Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.19 2010/05/08 19:04:04 nixphoeni Exp $
#
# Authors: Joe Sapp <nixphoeni@gentoo.org>
# Mike Gardiner <obz@gentoo.org>
@@ -54,12 +54,6 @@ gdesklets_src_install() {
# The displays only need to be readable
insopts -m0744
- # Check to see if DISPLAY is set for the
- # gdesklets-control-getid script to run without
- # error
- [ -z "${DISPLAY}" ] && DISPLAY=""
- export DISPLAY
-
debug-print-section sensor_install
# First, install the Sensor (if there is one)
if [[ -n "${SENSOR_NAME}" ]]; then
@@ -161,7 +155,7 @@ gdesklets_src_install() {
for CTRL in ${CONTROL_INITS[@]}; do
cd `dirname ${CTRL}`
- CTRL_NAME=$( "${GDESKLETS_INST_DIR}/gdesklets-control-getid" `pwd` )
+ CTRL_NAME=$( "${GDESKLETS_INST_DIR}/gdesklets-control-getid" `pwd` 2> /dev/null )
einfo "Installing Control ${CTRL_NAME}"
# This creates the subdirectory of ${CTRL_NAME}
# in the global Controls directory