From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: philip@warpmail.net (Philip K.) Newsgroups: gmane.emacs.bugs Subject: bug#41030: [PATCH] Make EWW respect XDG download directory by default Date: Tue, 05 May 2020 10:20:29 +0200 Message-ID: <874ksu3i9e.fsf@bulbul> References: <20200502165842.8564-1-philip@warpmail.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="100331"; mail-complaints-to="usenet@ciao.gmane.io" Cc: contovob@tcd.ie, stefan@marxist.se, 41030@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 05 10:21:18 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVspI-000PyS-Om for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 10:21:16 +0200 Original-Received: from localhost ([::1]:54700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVspH-00077K-Mw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 04:21:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVsp4-00076n-Fv for bug-gnu-emacs@gnu.org; Tue, 05 May 2020 04:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVsp4-0007HF-7D for bug-gnu-emacs@gnu.org; Tue, 05 May 2020 04:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVsp4-0004pH-1p for bug-gnu-emacs@gnu.org; Tue, 05 May 2020 04:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: philip@warpmail.net (Philip K.) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 May 2020 08:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41030-submit@debbugs.gnu.org id=B41030.158866684218517 (code B ref 41030); Tue, 05 May 2020 08:21:02 +0000 Original-Received: (at 41030) by debbugs.gnu.org; 5 May 2020 08:20:42 +0000 Original-Received: from localhost ([127.0.0.1]:34690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVsoj-0004ob-TC for submit@debbugs.gnu.org; Tue, 05 May 2020 04:20:42 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:34169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVsoh-0004oN-7f for 41030@debbugs.gnu.org; Tue, 05 May 2020 04:20:40 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id E5C225C00BB; Tue, 5 May 2020 04:20:33 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 05 May 2020 04:20:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warpmail.net; h= from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-type; s=fm3; bh=aJun1B2Lc18APpi/1OV/obDs34w7u311U5Zz8Fd Z4Yw=; b=UF5JZqBPqk21PWKMJ/rDeKKcJtqsJpflVeDVihazu/YhDVsVPGan6oH fRyNZ63kO3PowmM5ZVjyyvPy/eru9GxfQUocAi7oR+HF/5+QHct4Vl+o7Pqrzakp P+ic4jw16ztW2/Ot6K6NCgH+KE80TNhfnuQYEP5LSJGhyajlKoxjmm6nPgGkG4k7 CczjasL1CdSLxXnF9FinOnUcjIdNNH1Pb1jx1t8p9DOTzj8VRvr/Ng7KWOj2Iyc9 bieev1MxCHmENrrC7uF2nTz2JpnAsevFA0Qg62yylyfjpYeERkBgitlIMLpvglbW 4FxtBzlffbBK0wL5KbYspysbHOtIbZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=aJun1B2Lc18APpi/1 OV/obDs34w7u311U5Zz8FdZ4Yw=; b=2Fnxg/V6vXK1bjgsBnBtmcoo/NRN58xMf tEHjMP1oKpHIJ6Ejes86oGnmRwkSnoZgFW4k+kXaeoHRPBOG96rLTIhB11RD65qv unO4MLRovFB8t8vaETOYBBZDfx7tbdP0jGq80PJ2adj6HuL1HrKN/JU3lEfFE2W4 kPnJ+Izest2D1Tz4XU7OYcDH7wIKls2IJ1+eMnQx7CNfqHUsojxrpNeWmjs3u0EL v7QXSK1SUOkmZC7zNdWVDQjoaoqAwa2Jj/X8vHbVDwzbOtsK+WnQLxmqiNZM0BbY B8kZ20PhvM0pPV+Th+ct1GPgjTZmP6m37MAjZ41k7jFHhNBRo8Oiw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeeigddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujgffkfggtgesthdtredttddttdenucfhrhhomhepphhhihhlihhpseif rghrphhmrghilhdrnhgvthculdfrhhhilhhiphcumfdrmdenucggtffrrghtthgvrhhnpe ffhedvfefhtdettdevleeikeeggfejuedvvddtuddvfeekvddvveekleefhedvueenucfk phepkeejrddugeehrdelrdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepphhhihhlihhpseifrghrphhmrghilhdrnhgvth X-ME-Proxy: Original-Received: from localhost (p57910907.dip0.t-ipconnect.de [87.145.9.7]) by mail.messagingengine.com (Postfix) with ESMTPA id 2B2F23280060; Tue, 5 May 2020 04:20:33 -0400 (EDT) In-Reply-To: <87wo5qvmgq.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 05 May 2020 10:02:13 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179719 Archived-At: Lars Ingebrigtsen writes: > "Basil L. Contovounesios" writes: > >> - What do we do when xdg-user-dir returns ~/ but ~/Downloads/ also >> exists, as in Stefan's case? Consider it a user misconfiguration? > > I think that is ~/Downloads/ exists, it's a good hint that the user > wants to use ~/Downloads/, no matter what xdg-user-dir says. So should it check for "~/Downloads/" first (and maybe perhaps a few other popular directory names in other languages), and unless that hasn't been found load xdg.el and call xdg-user-dir? In the worst case, the user doesn't have a download directory and $HOME is actually where they want their files to land. -- Philip K.