delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/26/13:57:31

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=AkVGCyV/jhozVyIoE1vNeiW9V0LcVH
RYCc26l76BM6zo93egmgMXcNE7KNHNbFYNBLOE2p8pLyQjP4w00KYe7VNfFgV7wU
MHyHn9xaB6MkXqKdS8wkDsRGxdhzKsqMKxT2Hm3ZUVqjNdWKYBLCTrqoWvMRg9aT
BE90Vcwt+5qH8=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=mhyX1n+Jk0HHd/OqBuM7/iUfJ2Y=; b=ai8W
Fl2b+zrTFYIvp8Lvu9veK/cdj6sU+HfbqLTq/DrGvb8KCvxWF781+VZ9Dp2KKnyn
F3wq0TYlFuDC17rID7KRVrUcInZTyP6DAhJcU9ugJnkKxjbujU2GfBuWRVQohcrp
xv6FTmBmbAvqUFchkOMQ2WBCmFrpekOI9J8cfAI=
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-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=AWL,BAYES_05,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: About cygstart in Cygwin64
Date: Tue, 26 Aug 2014 10:56:59 -0700
Lines: 35
Message-ID: <ltihpb$ifk$1@ger.gmane.org>
References: <53FC6064 DOT 4090305 AT alice DOT it>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0
In-Reply-To: <53FC6064.4090305@alice.it>
X-IsSubscribed: yes

On 8/26/2014 3:24 AM, Angelo Graziosi wrote:
> When I had WinXP32 and Cygwin32, I defined an alias (in .bashrc) like this
>
>    alias cygstart='TEMP=/home/$USER/Temp cygstart'
>
> where /home/$USER/Temp was a symlink to the user native Temp directory
> (/cygdrive/c/Documents and Setting/Local/Temp, if I remember..)

Here's what I do - use Cygwin's tmp (i.e. /tmp in Cygwin and 
C:\Cygwin\tmp for Windows). Then change the TEMP and TMP environment 
variables to point to C:\Cygwin\tmp. Then simply think of "temp" as /tmp.


> The reasons for that alias with TEMP=/home.. in front, were that,
> opening documents with Windows native applications (for example, a PDF
> with AR), all temporary files that those applications created were saved
> in the Windows native Temp directory. And all this worked..
>
> Now with Win7U and Cygwin64 I defined a similar alias, being
> /home/$USER/Temp the symlink
>
>    /home/$USER/Temp --> /cygdrive/c/$USER/AppData/Local/Temp
>
> In this case, all temporary files created by Windows native
> applications, started with cygstart, go in /tmp Cygwin directory.., i.e.
> the definition "TEMP=/home/$USER/Temp" in front of cygstart command is
> ignored..
>
> This is a minor issue but I wonder if there is a way to avoid it.

Any self respecting Windows app should honor either $TMP or $TEMP. Non 
self respecting Windows apps should be uninstalled ;-)
-- 
Andrew DeFaria
http://defaria.com


--
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