From: Hartmut Figge <hfigge@uni.de>
To: linux-msdos <linux-msdos@vger.kernel.org>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Subject: xdosemu & the _X_... variables in dosemu.conf
Date: Fri, 26 Apr 2002 23:41:32 +0200 [thread overview]
Message-ID: <20020426215438.875FF3DDE@basket.ball.reliam.net> (raw)
Greetings,
the following problem can eventually be solved by the developers of
dosemu or perhaps be circumvented by others. I have Cc'ed the dosemu
maintainer of my distro. Possible followups should go to linux-msdos.
The problem:
the variables in dosemu.conf beginning with _X_ will not be evaluated,
if xdosemu is started from the menu of an windowmanger _and_ X was
started with 'startx' from the console.
Proof:
in dosemu.conf set _X_title = "strange". If not present, add a menu-item
to your windowmanger to start xdosemu. Start X with startx, _not_ with
xdm or similar.
If you now start xdosemu from an xterm, you will see the title 'strange'
at the top of the xdosemu window as expected, but if you start xdosemu
from the menu you will not.
Reason:
in $DOSEMU_LIB_DIR/global.conf are the lines
if ($DOSEMU_STDIN_IS_CONSOLE eq "1")
$BEING_ON = "console"
else
and DOSEMU_STDIN_IS_CONSOLE was set by evaluating the output of 'who am
i', which contains the terminal. And this terminal will be tty?, if you
have started X by 'startx', unless you start xdosemu from an xterm.
$BEING_ON = "console" will bypass the evaluating of the _X_... variables
in dosemu.conf.
For me, i have a very ugly workaround. I have inserted the lines
if ($SURELY_X)
$DOSEMU_STDIN_IS_CONSOLE=(0)
endif
just before the earlier mentioned lines, start xdosemu from the menu of
the windowmanager with the command 'xdosemu.fake', where 'xdosemu.fake'
is a shell-script with the lines
#!/bin/sh
export SURELY_X=1
xdosemu
unset SURELY_X
cu
--
hafi
next reply other threads:[~2002-04-26 21:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-26 21:41 Hartmut Figge [this message]
2002-04-27 10:06 ` xdosemu & the _X_... variables in dosemu.conf Grigory Batalov
2002-06-21 15:56 ` witek
2002-06-22 13:44 ` pesarif
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020426215438.875FF3DDE@basket.ball.reliam.net \
--to=hfigge@uni.de \
--cc=herbert@gondor.apana.org.au \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox