Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201523 - x11-misc/idesk executes incorrectly some program not launched by it
Summary: x11-misc/idesk executes incorrectly some program not launched by it
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-06 20:58 UTC by thierry volpiatto
Modified: 2017-05-30 08:08 UTC (History)
2 users (show)

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


Attachments
env_log (env_log,3.68 KB, text/plain)
2007-12-09 13:36 UTC, thierry volpiatto
Details
test_idesk.py (test_idesk.py,333 bytes, text/plain)
2007-12-09 18:44 UTC, thierry volpiatto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thierry volpiatto 2007-12-06 20:58:22 UTC
Hi,
I use a program that call external programs designed by mailcap
to open files .

To open plain/text file, this program (python program) call $EDITOR.
My $EDITOR is a script that launch emacsclient.
This env variable is defined in /etc/rc.conf and /etc/env.d/99local

When i launch emacs from fluxbox menu or from a terminal,
and i launch my python program from an idesk's icon emacsclient fail.

If i launch emacs from an idesk's icon and my program too emacsclient work
perfectly.

I think that's a bug of idesk (not emacsclient)

I tried to launch idesk from ~/.xprofile instead of fluxbox
but it change nothing.


Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Tue, 04 Dec 2007 10:46:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.imj.fr/pub/gentoo/ "
LANG="fr_FR.UTF-8"
LC_ALL="C"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/emacs"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac abook acl agg aiglx alsa amd64 amr ao async bash-completion bbdb bcmath berkdb bitmap-fonts bluetooth cdaudio cddb cdparanoia cdr cdrom cdsound chroot clamav clamd cli colordiff cpudetection cracklib crypt cups dbus dhcp divx dri dvb dvd dvdr dvdread emacs emacs-w3 enca encode epson escreen esd exif fbcon ffmpeg firefox fontconfig fortran gdbm gif gimp gnus gpm gtk gtk2 hpn http icecast iconv imagemagick imlib ipv6 isdnlog jack java javascript jpeg lame leim logrotate lynxkeymap mad midi mikmod mime mjpeg mp3 mpd mpeg mplayer mudflap multi-tty ncurses network nls nptl nptlonly nvidia ogg opengl openmp openssh openssl paste64 pcre pdf perl planner png pnm pop postproc ppds pppd preview-latex print procmail python qt3 readline realmedia reflection restrict-javascript scanner session slang sound spell spl ssl subject-rewrite subtitles subversion svg tcl tcpd tga tiff tk transcode truetype truetype-fonts type1 type1-fonts unicode usb v4l v4l2 vcd vorbis wav webdav wma wxwindows xanim xft xinerama xml xorg xpm xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Santiago M. Mola (RETIRED) gentoo-dev 2007-12-09 12:40:49 UTC
Could you launch idesk from a terminal and try to reproduce the error again? Maybe idesk outputs something useful there.
Comment 2 thierry volpiatto 2007-12-09 13:32:54 UTC
There is no error when i launch idesk from a shell:
My program can catch emacsclient with no problem.
It's only happen when idesk is launched by X.
I use gdm to start X.
May be there is a confusion for X to recognize my shell's ?
I send you in the next post my env if it can help.
Comment 3 thierry volpiatto 2007-12-09 13:36:58 UTC
Created attachment 138087 [details]
env_log

Here my env, hope it's help.
Comment 4 thierry volpiatto 2007-12-09 18:44:53 UTC
Created attachment 138115 [details]
test_idesk.py

May be you can try with this simple script launched from
an icon with idesk.
If idesk is started from a term it work like intended calling emacsclient
If idesk is started from X (from fluxbox or .xprofile)
it call a clone of the current emacs-session.
if you close this window with C-x 5 0 you kill the current
emacs session.

You can get the complete program here, but the small script
work(fail!) in the same way.

http://home.gna.org/python-calendar/#sec2
Comment 5 Jonas Stein gentoo-dev 2017-05-30 08:08:43 UTC
Could you add the version number in the title, please? Is this still present in the latest version?