summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJoe Sapp <nixphoeni@gentoo.org>2005-06-17 23:34:55 +0000
committerJoe Sapp <nixphoeni@gentoo.org>2005-06-17 23:34:55 +0000
commit70d556c8433ccd6e3e9d3f7ef24979a8fc082483 (patch)
treecb176becf1f654019b2f443756d08982c4aa9748 /eclass
parentminimum poppeler is 0.3.2 (diff)
downloadgentoo-2-70d556c8433ccd6e3e9d3f7ef24979a8fc082483.tar.gz
gentoo-2-70d556c8433ccd6e3e9d3f7ef24979a8fc082483.tar.bz2
gentoo-2-70d556c8433ccd6e3e9d3f7ef24979a8fc082483.zip
Forced DISPLAY to be set - gdesklets-control-id doesn't work if it isn\'t
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gdesklets.eclass11
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/gdesklets.eclass b/eclass/gdesklets.eclass
index 37265eab64a6..0815fd6d9733 100644
--- a/eclass/gdesklets.eclass
+++ b/eclass/gdesklets.eclass
@@ -1,6 +1,6 @@
# Copyright 2004 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.4 2005/06/06 02:00:12 nixphoeni Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.5 2005/06/17 23:34:55 nixphoeni Exp $
#
# Authors: Joe Sapp <nixphoeni@gentoo.org>
# Mike Gardiner <obz@gentoo.org>
@@ -16,7 +16,8 @@
# RDEPEND: *Optional* Set if the desklet requires a minimum version
# of gDesklets greater than 0.34 or other packages.
-inherit eutils
+inherit eutils multilib
+
ECLASS="gdesklets"
INHERITED="$INHERITED $ECLASS"
@@ -48,6 +49,12 @@ 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
+
# First, install the Sensor (if there is one)
if [[ -n "${SENSOR_NAME}" ]]; then
for SENS in ${SENSOR_NAME[@]}; do