From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Philip K Newsgroups: gmane.emacs.bugs Subject: bug#41030: [PATCH] Make EWW respect XDG download directory by default Date: Sat, 2 May 2020 18:58:42 +0200 Message-ID: <20200502165842.8564-1-philip@warpmail.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="7599"; mail-complaints-to="usenet@ciao.gmane.io" To: 41030@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 02 19:00: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 1jUvUu-0001sj-DX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 May 2020 19:00:16 +0200 Original-Received: from localhost ([::1]:44808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUvUt-0007yF-Bo for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 May 2020 13:00:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUvUi-0007vJ-OH for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 13:00:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUvUh-0007Uz-ST for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 13:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUvUh-0007Tu-6N for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 13:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jUvUh-0006Sj-34 for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 13:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip K Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 May 2020 17:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158843874524716 (code B ref -1); Sat, 02 May 2020 17:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 May 2020 16:59:05 +0000 Original-Received: from localhost ([127.0.0.1]:53789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUvTX-0006Q1-1I for submit@debbugs.gnu.org; Sat, 02 May 2020 12:59:05 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUvTV-0006Pt-Bo for submit@debbugs.gnu.org; Sat, 02 May 2020 12:58:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUvTU-0006az-PC for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 12:58:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUvTT-0006Tg-Vs for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 12:58:48 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:53919) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUvTT-0006R7-Ch for bug-gnu-emacs@gnu.org; Sat, 02 May 2020 12:58:47 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 7E1E55C00FE for ; Sat, 2 May 2020 12:58:45 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 02 May 2020 12:58:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warpmail.net; h= from:to:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=8c3R4jZpr5unP0v1uIKe9nTsDL XEaZxzYpHmqHB8ghk=; b=cusm5wJOob/oZ/vOKtlwLt8w92d5oStzksA1mHRCtp 3rutukFdy1jcLA6XJyZysCFigXG7Xra5Pa6k269HMlcwYf1/uKaBnbrXfg6xRfI+ mv/67x7wBLZfoN8Qy218NgqWRVLKeCyyljbUoGvbJnuX8WSxNGTCxGUyu80ZDVh2 TviQDdR1gvs+IOSxlCsHGxAJ63FzsWCGOy0CL92QCcg8ViQQCc7lM0reSdv1NpV2 UZiRQBSA7z+8i2Zs3OXBwVOf9je9CLgCqRJkehTLUvpxBSfKaegnR+rDCb+5yqNk /91C46GbJL7SylSpMXjdSu+SndvUQoFzysFxPCe4dU8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=8c3R4jZpr5unP0v1u IKe9nTsDLXEaZxzYpHmqHB8ghk=; b=um5W44p8IODtmJgI18JeYs+72rLGP4fZY Kh8hfbNyRmz+E0lz65Bo5CNzO4htvBSPETYxFSrnNeocucZni048AqVCjFLt38L+ pZOwO6Edcntp9at2y658NxsU4lxr70mTqrNjDuPUoPPcFATbqrKik5lN6+2FV0sJ wc3g1MtrlCf886AwXQjJtt52zJofiQ20ySwdEyHhgTe4H4819fRHK6iuVWaDTJHb IDg2JdAyHKSy082CVLFEWkfKKuV6n8dqjVNzVwOemuJUn641ly408amfC1VQAk/L FjXu2BR8BIc2fBy9SbaIztatqmicMvTBlJwKar5cBuJNlDLXzuZ2A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieelgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgogfeguddtqddvjeculdegtddmnecujfgurhephf fvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefrhhhilhhiphcumfcuoehphhhi lhhiphesfigrrhhpmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeduhefgffekle eltddtleehjeekffduheeggeeigeduudehfedukeelgfefvedtjeenucfkphepjeelrddv udelrdduledvrddvgeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepphhhihhlihhpseifrghrphhmrghilhdrnhgvth X-ME-Proxy: Original-Received: from localhost (p4fdbc0f4.dip0.t-ipconnect.de [79.219.192.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 14BF33065FA6 for ; Sat, 2 May 2020 12:58:44 -0400 (EDT) X-Mailer: git-send-email 2.20.1 Received-SPF: pass client-ip=66.111.4.25; envelope-from=philip@warpmail.net; helo=out1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/02 12:58:45 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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:179525 Archived-At: --- lisp/net/eww.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index c83884fd25..0d0aa9f3bc 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -32,6 +32,7 @@ (require 'thingatpt) (require 'mm-url) (require 'puny) +(require 'xdg) (eval-when-compile (require 'subr-x)) ;; for string-trim (defgroup eww nil @@ -55,7 +56,8 @@ eww-search-prefix :group 'eww :type 'string) -(defcustom eww-download-directory "~/Downloads/" +(defcustom eww-download-directory (or (xdg-user-dir "DOWNLOAD") + "~/Downloads/") "Directory where files will downloaded." :version "24.4" :group 'eww -- 2.20.1