delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/07/08/10:43:56

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:references:to:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=CPyXb913WO4iXASo
+yW2VLKdy+WmGAgeVh/RfMoiFT32s9twXejQkO4jVo9Wv81X1IiXxt3TVaEJDVl7
b9dxnABBQHN2+U6wVljwT2KyuXaJfpzLL6+QCgxtx/m0wR9dCD0Yy6qOAFRSdL7a
nKUyOI4TJa44pRmV82SrdoCbS9g=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:references:to:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=e8lguNaqaaW4GYCcAorpVL
mjcOU=; b=Kwsypulz2l1MOwWwz/39P+sdDr/A2SQFMdLMw2KtEGdRxTnS1AUphR
q05AO7bkgrCzT5E5r6ya65lYYqDb1q0R7hZ5PTnqekmk8SkWzyBpGyfmRDwVLn+/
Ir7efnet2Rf6U2/mk5aWPmm5A4IIlihH+t81wrPdszX+f+PIs69gw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-HELO: out5-smtp.messagingengine.com
Subject: Re: Isuse with xwin-xdg-menu "View logfile"
References: <CAMKht8i34KNGR9-47iDYo=deTzASA2NYdtuMEmdp-xawyn4PsQ AT mail DOT gmail DOT com>
To: cygwin AT cygwin DOT com
From: Jon TURNEY <jon DOT turney AT dronecode DOT org DOT uk>
Message-ID: <559D3703.1060805@dronecode.org.uk>
Date: Wed, 8 Jul 2015 15:43:15 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
MIME-Version: 1.0
In-Reply-To: <CAMKht8i34KNGR9-47iDYo=deTzASA2NYdtuMEmdp-xawyn4PsQ@mail.gmail.com>

On 07/07/2015 04:13, Michael DePaulo wrote:
> First of all, let me say how much I like xwin-xdg-menu. Thumbs up to
> Jon Turney, and to all the other developers like Yaakov Selkowitz who
> work on related components/package for Cygwin/X.
>
> Anyway, when I do the following:
>
> $ xinit -- -multiwindow
>
>  From the xterm that automatically launches:
> $ xwin-xdg-menu
>
> XDG Menu > View logfile
>
> I then see this:
>
> executing 'xterm -title '/dev/pty1' -e less +F /dev/pty1', pid 1292
> (pid 1292 stderr) Warning: Missing charsets in String to FontSet conversion
> (pid 1292 stderr) Warning: Unable to load any usable fontset
> pid 1292 exited with status 0
>
> (The xterm window flashes briefly, and then disappears.)
>
> Is /dev/pty1 the log file we should be trying to open?
>
> I am not even sure what log file should be opened. Personally, I would
> have assumed it is the X Server's log file.

That's hard to do with full generality, as we would need to know or 
discover what -logfile option the server was given.

> I see that this is the relevant code:
> https://github.com/jon-turney/xwin-xdg-menu/blob/51ae0ec7f225b8257ba64ce5318b857bf9ce8450/execute.c#L236

  I made a small update to today, which includes a change to remove the 
"View logfile" menu item if stdout is a tty, which should avoid this 
problem scenario.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019