From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#41030: [PATCH] Make EWW respect XDG download directory by default Date: Mon, 04 May 2020 00:52:06 +0200 Message-ID: <874ksw1vjd.fsf@stefankangas.se> 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="122140"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 41030@debbugs.gnu.org To: Philip K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 04 00:53:13 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 1jVNU1-000VeE-0v for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 May 2020 00:53:13 +0200 Original-Received: from localhost ([::1]:56316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVNTz-0002U8-On for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 May 2020 18:53:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVNTq-0002Tw-Kh for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 18:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVNTq-0003rk-BZ for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 18:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVNTq-0004XW-9F for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 18:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 May 2020 22:53: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.158854633717400 (code B ref 41030); Sun, 03 May 2020 22:53:02 +0000 Original-Received: (at 41030) by debbugs.gnu.org; 3 May 2020 22:52:17 +0000 Original-Received: from localhost ([127.0.0.1]:58379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVNT6-0004WZ-Rn for submit@debbugs.gnu.org; Sun, 03 May 2020 18:52:16 -0400 Original-Received: from ted.gofardesign.uk ([67.225.143.91]:33044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVNT4-0004WL-Ub for 41030@debbugs.gnu.org; Sun, 03 May 2020 18:52:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4JGFw4kQAd4CAbSXts6L3UzYnYl0dWC1xIfjQ2pTj4k=; b=jY8qGEifDONZhwWuGHdWHI5+NX OpSE2dLiMFz30DICMpMgSHRcC8W2stj8N2RMVAOyhVXfKHmg7a7POBWINx2gsDn3NMUAeZ7lAoX7y yTV2QLdiCzZdMISGeVR9jhZm+HVylIkA5poPnOUQmbIjGJ9CWWmfgkITWlaG4rTc/Zg4UPew9rsPU uvOXDSRRIj1phRVGzdXcvIAWJzGqrwcEW7eQANp7EiHNH9FZ4CKjT6UrXPvyvRf1QW75zn6R5CZE2 FJEsFOmomp5y0KjBIbmGRiUxkRVA/jZMtkdBWakyHY5kFBFca6+7gtIGe05kermvz2w+jgZWluHkv tBqrLI/w==; Original-Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:40492 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jVNSy-001DLG-CU; Sun, 03 May 2020 18:52:08 -0400 In-Reply-To: <20200502165842.8564-1-philip@warpmail.net> (Philip K.'s message of "Sat, 2 May 2020 18:58:42 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se 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:179639 Archived-At: Philip K writes: > -(defcustom eww-download-directory "~/Downloads/" > +(defcustom eww-download-directory (or (xdg-user-dir "DOWNLOAD") > + "~/Downloads/") This makes sense conceptually. However, on my machine, evaluating (xdg-user-dir "DOWNLOAD") just returns $HOME. That's a worse default than "~/Downloads/", no? But I don't know enough about the XDG standard to propose a solution. Nor do I know if this is because my setup is particularly unusual. Lars, what do you think? Best regards, Stefan Kangas