From owner-freebsd-questions@FreeBSD.ORG Tue Oct 24 17:35:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 210A516A47C for ; Tue, 24 Oct 2006 17:35:06 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0E1743D60 for ; Tue, 24 Oct 2006 17:35:05 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id k9OHZ3Kg079465; Tue, 24 Oct 2006 12:35:03 -0500 (CDT) (envelope-from dan) Date: Tue, 24 Oct 2006 12:35:02 -0500 From: Dan Nelson To: Giuseppe Pagnoni Message-ID: <20061024173502.GC53901@dan.emsphone.com> References: <453E4CF6.3030003@emory.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <453E4CF6.3030003@emory.edu> X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-questions@freebsd.org Subject: Re: linux programs accessing non-linux programs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2006 17:35:06 -0000 In the last episode (Oct 24), Giuseppe Pagnoni said: > I have been having trouble figuring out how to make linux programs > (installed and running under /compat/linux) access other FreeBSD > binaries that are *not* located under /compat/linux. For instance, I > am running linux-thunderbird and when I want to open a *.doc file > attachment, thunderbird asks me which application I would like to > use: I would like to point it to /usr/X11R6/bin/abiword , but > unfortunately when I chdir to /usr/X11R6/bin in the dialog box, it > goes actually to /compat/linux/usr/X11R6/bin (and abiword is *not* > there). Is there a way to make linux programs be able to jump out of > /compat/linux/ when looking for helper applications? If you specify the full path instead of browsing to the directory, it should work. When linux programs ask for files, the kernel first looks in /compat/linux/, then /. If you need to be able to browse to files, you can try null mounting / and /usr into /compat/linux/realroot, then browse through that. Or, if you have amd enabled, browse through /net/localhost/... -- Dan Nelson dnelson@allantgroup.com