delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/08/13:44:10

X-Spam-Check-By: sourceware.org
Message-ID: <452938D4.60304@cygwin.com>
Date: Sun, 08 Oct 2006 13:43:48 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: lyx has problem with network directory names
References: <20061004190525 DOT GA18950 AT panix DOT com> <loom DOT 20061006T123901-847 AT post DOT gmane DOT org>
In-Reply-To: <loom.20061006T123901-847@post.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Enrico Forestieri wrote:
> David Arnstein writes:
>> I just tried to use the Cygwin port of lyx. It cannot cope with my
>> home directory, which appears as //fs-sj1-15/darnstein in Cygwin. This
>> is a network directory, obviously.
>>
>> When lyx starts up, it emits a complaint
>> 	QSettings: error creating /fs-sj1-15/darnstein/.qt
>>
>> When I try to save a lyx document to my home directory, lyx complains
>> when it presents its file browser dialog box. It says
>> 	Could not read directory /fs-sj1-15
>>
>> It appears that lyx is trying to access the root directory (/). It
>> does not seem to know how to interpret the Windows syntax "//."
> 
> This is because lyx uses the boostfs library with BOOST_POSIX defined,
> so any path of the form //xxx/yyy is normalized to /xxx/yyy.
> I understand that //machine/path is a windowism, but I think that it
> should be allowed on cygwin. Can this be seen a boost bug?
> 


Possibly.  But I expect boost folks would argue that using UNC syntax doesn't
fit with POSIX semantics.  Currently, the code keys off of BOOST_POSIX or
BOOST_WINDOWS defines to determine the API to use.  Under Cygwin, BOOST_POSIX
makes the most sense but with that definition comes the restriction of no UNC
paths.  Obviously, the workaround for now is to just mount the path in Cygwin
to create a POSIX path to use.  This will make Lyx happy without too much of a
burden for the user.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

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

- Raw text -


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