Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129301 - media-gfx/scrot-0.8 fails to recognize running X
Summary: media-gfx/scrot-0.8 fails to recognize running X
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-08 19:39 UTC by JT Thompson
Modified: 2007-03-19 16:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JT Thompson 2006-04-08 19:39:51 UTC
paste  > Making screenshot...
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

giblib error: Can't open X display. It *is* running, yeah?


 # eix scrot
* media-gfx/scrot
     Available versions:  0.8
     Installed:           0.8
     Homepage:            http://www.linuxbrit.co.uk/
     Description:         Screen Shooter

 # eix giblib
* media-libs/giblib
     Available versions:  1.2.4
     Installed:           1.2.4
     Homepage:            http://www.linuxbrit.co.uk/giblib/
     Description:         Giblib, graphics library

emerge --info
Portage 2.0.54 (default-linux/ppc/ppc32, gcc-3.4.4, glibc-2.3.5-r3, 2.6.15-gento
o-r1 ppc)
=================================================================
System uname: 2.6.15-gentoo-r1 ppc 7447A, altivec supported
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-c
har -mstring -mmultiple"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share
/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar
e/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned
-char -mstring -mmultiple"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/
distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X audiofile berkdb bitmap-fonts bzip2 crypt cups curl dri ethereal expa
t fam fortran gif gmp gtk idn imlib ipv6 jpeg lcms mng ncurses nls nptl opengl p
am pcre perl png python qt readline ssl tcpd tiff truetype truetype-fonts type1-                                           fonts udev unicode usb xml2 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_                                           OVERLAY
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2007-03-19 16:50:58 UTC
Don't run it as root (su, sudo..) or you won't have DISPLAY varible correctly set. 

drac@unique ~ $ echo $DISPLAY
:0.0
drac@unique ~ $ scrot
drac@unique ~ $ 
drac@unique ~ $ sudo -s
unique ~ # scrot      
giblib error: Can't open X display. It *is* running, yeah?
unique ~ # echo $DISPLAY
unique ~ #