From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Grigory Batalov" Subject: Re: xdosemu & the _X_... variables in dosemu.conf Date: Sat, 27 Apr 2002 14:06:51 +0400 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <20020427140651.14ef07ea.grisxa@mail.ru> References: <20020426215438.875FF3DDE@basket.ball.reliam.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20020426215438.875FF3DDE@basket.ball.reliam.net> List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-msdos@vger.kernel.org On Fri, 26 Apr 2002 23:41:32 +0200 "Hartmut Figge" wrote: > 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 It's no bad =), my patch looks like this: ------ diff -ruN dosemu-1.1.2.orig/src/base/init/config.c dosemu-1.1.2/src/base/init/config.c --- dosemu-1.1.2.orig/src/base/init/config.c Mon Mar 18 23:26:44 2002 +++ dosemu-1.1.2/src/base/init/config.c Tue Mar 19 00:54:20 2002 @@ -611,6 +611,10 @@ } buf[j] = 0; setenv("DOSEMU_OPTIONS", buf, 1); + if (usedoptions['X']) + { strcpy(buf, "0"); + setenv("DOSEMU_STDIN_IS_CONSOLE",buf,1); + } return; } uname(&unames); ------ -- Grigory Batalov.