From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] checking eww download directory Date: Sat, 28 Jan 2017 10:54:06 +0200 Message-ID: <83o9yrzhsh.fsf@gnu.org> References: <87wpdgmi84.fsf@udel.edu> <87inp08g2b.fsf@mouse> <20170127194816.GA18966@holos.localdomain> <83y3xwz2kv.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1485593699 28123 195.159.176.226 (28 Jan 2017 08:54:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2017 08:54:59 +0000 (UTC) Cc: mvoteiza@udel.edu, larsi@gnus.org, emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 28 09:54:46 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXOmH-0005Bf-0C for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2017 09:54:33 +0100 Original-Received: from localhost ([::1]:50497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXOmM-0003Is-Co for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2017 03:54:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXOm5-0003Fc-R8 for emacs-devel@gnu.org; Sat, 28 Jan 2017 03:54:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXOm0-0001WY-Vt for emacs-devel@gnu.org; Sat, 28 Jan 2017 03:54:21 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXOm0-0001WU-Sk; Sat, 28 Jan 2017 03:54:16 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1477 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cXOlz-0005Ni-K8; Sat, 28 Jan 2017 03:54:16 -0500 In-reply-to: (message from Yuri Khan on Sat, 28 Jan 2017 15:01:23 +0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211675 Archived-At: > From: Yuri Khan > Date: Sat, 28 Jan 2017 15:01:23 +0700 > Cc: Mark Oteiza , Lars Magne Ingebrigtsen , > Emacs developers > > On Sat, Jan 28, 2017 at 3:10 AM, Eli Zaretskii wrote: > > > The Downloads directory exists on Windows only since Windows 7, it's > > not there on older versions. > > The SHGetKnownFolderPath API function is supported since Vista, > though. I'd prefer using SHGetFolderPath (which Emacs already uses), as its availability is almost universal on the supported versions of the OS. Probably in conjunction with CSIDL_PROFILE. > The politically correct way on Windows would probably be to > try to call that with FOLDERID_Downloads, although since Windows 7 > Microsoft dropped the dubious practice of localizing directory names > on the file system, replacing it with the equally dubious practice of > replacing actual directory names with localized strings in the shell > UI instead. My point was where do you put stuff if Downloads doesn't exist. That is separate from the issue of finding the directory when it does exist.