I'm probably missing something stupid here, but here's the error message: $ wifi-radar.sh Traceback (most recent call last): File "/usr/sbin/wifi-radar", line 1795, in ? import gtk, gobject File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ? from _gtk import * RuntimeError: could not open display Reproducible: Always Steps to Reproduce: 1. unmask & emerge net-wireless/wifi-radar-1.9.4 2. run wifi-radar.sh 3. observe crash Actual Results: I filed this bug report. Expected Results: Not crashed. Like, maybe opened a window, or something. $ emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-gentoo-r10 i686) =============================================================== == System uname: 2.6.12-gentoo-r10 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [disabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.10 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.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/ kde/3.3/shutdown /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/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/ texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ / usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/ ftp://mirrors.blueyonder.co.uk/mirrors/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://gentoo.linux.no/pub/gentoo/" LINGUAS="en_GB" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts artswrappersuid avi berkdb bitmap-fonts browserplugin crypt cups curl dbus directfb eds emboss encode esd fam fbcon foomaticdb fortran gdbm gif gnokii gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imlib java jpeg jpeg2k kde kdeenablefinal ldap libg++ libwww mad mikmod mmx motif mozcalendar mozilla mozsvg mp3 mpeg mysql ncurses nethack nls offensive ogg oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime rdesktop readline samba sdl slang sms speex spell sse ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev userlocales vorbis xml2 xmms xprint xv zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Ok, I really must be doing something embarrassing... wifi-radar works perfectly for me if I run it directly as root but not if I run the wifi-radar.sh script (whether as root or as a regular user). I have added the appropriate line to /etc/sudoers but I don't think that makes any difference. It also fails if I try running `sudo wifi-radar`
Guess so... It works nicely on my machine where I allow my user to execute anything through sudo without asking for a password (from my /etc/sudoers): thorin ALL=(ALL) NOPASSWD: ALL
Putting the Great Wand of Invalidation +4 to some use ;-)
*** Bug 125669 has been marked as a duplicate of this bug. ***
I have this bug even though I have the sudo line in there as well: %users ALL=(ALL) NOPASSWD: /usr/sbin/wifi-radar, /usr/bin/env