From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] checking eww download directory Date: Fri, 27 Jan 2017 15:17:10 -0500 Message-ID: <87mvecntq1.fsf@udel.edu> References: <87wpdgmi84.fsf@udel.edu> <66463069-a49f-1dc1-2399-a8e5c60af5ca@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1485549145 18716 195.159.176.226 (27 Jan 2017 20:32:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2017 20:32:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 27 21:32:21 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 1cXDBh-0002vW-L4 for ged-emacs-devel@m.gmane.org; Fri, 27 Jan 2017 21:32:01 +0100 Original-Received: from localhost ([::1]:48786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXDBm-0000uK-RR for ged-emacs-devel@m.gmane.org; Fri, 27 Jan 2017 15:32:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXCxQ-0003Ps-FI for emacs-devel@gnu.org; Fri, 27 Jan 2017 15:17:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXCxN-0003k6-8s for emacs-devel@gnu.org; Fri, 27 Jan 2017 15:17:16 -0500 Original-Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:35153) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXCxN-0003k2-3q for emacs-devel@gnu.org; Fri, 27 Jan 2017 15:17:13 -0500 Original-Received: by mail-qt0-x241.google.com with SMTP id s58so7475578qtc.2 for ; Fri, 27 Jan 2017 12:17:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=EwILdfO3+4iB9C8EizWtGlX7QcHc/GyJnsj39juezDU=; b=kZn9NGmQgKmXy29ILU+vW0vE0Sw3B9snCBRv2sjFpvz1TwQACP3SX5lgxo6WLLgArp 1lXN6DaIbNcrqfYgjv3G8s3nLNKCcdzon9tkoTc+pLrgbgzs0FRxLHkZSuGOB/ZTc53C B/1iTM0VASZ45q2gm/+z/JBw9DXBZKICN7PQqkhSVFGSEhrHQik5+IiqeeQiIhq1O4Cm ZmUFEh9s27sLmQEyoVFDGNNXd/ywdaSyz/gJ7K0mJcfQSO3iFtBArk++a6wOZ++jcqvI RXGCfDFVORlSXrRvy9WMF7Ju96hdyemENrqwLEVrhFTzwgdUMkuVZUDPil1ZzAgHZv5j aaqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=EwILdfO3+4iB9C8EizWtGlX7QcHc/GyJnsj39juezDU=; b=UpJRP4speUMBbcRUd8vA0LvFRwa/jmX6ARfLFb6nIBtVATA/mZQYDbznDeaZ3is8TQ VwsBll3io2hX2R9CMUGl346JMt9KQTGoM3adCv6/DqG9qw+oGoVGl1RRe89iffrtfAHg g0tShXqQfBCVdGsoelhERn5KQRgo7C8ejrURs9Ij4dKCDkSWKQ4IAGSQ/yyz/W+fDkpr 7x10MnAWwaHpnGx1Tnu8Ab4zM6IilZgrqRUErhavPouto6cHqA68GRYfz2PXzMT7rMIO 7DL4ytRU5EH1RPmFlYOGPWYSOvzm1TU3IVSvj5LmZ5z/JmhuHWO/iryqgiV1aUWK8fs2 TjdQ== X-Gm-Message-State: AIkVDXLOn1SPTwTNss1ohsE46aNoTb5AwuLKvyERvviXCgQiA7fWeXcQJ82YvkDw5qLyjD4a X-Received: by 10.200.37.183 with SMTP id e52mr10034444qte.166.1485548232487; Fri, 27 Jan 2017 12:17:12 -0800 (PST) Original-Received: from holos.localdomain (pool-173-67-40-97.bltmmd.fios.verizon.net. [173.67.40.97]) by smtp.gmail.com with ESMTPSA id d15sm5000925qtg.22.2017.01.27.12.17.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 12:17:11 -0800 (PST) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 3A24766372; Fri, 27 Jan 2017 15:17:11 -0500 (EST) In-Reply-To: <66463069-a49f-1dc1-2399-a8e5c60af5ca@gmail.com> (=?utf-8?Q?=22Cl=C3=A9ment?= Pit-Claudel"'s message of "Fri, 27 Jan 2017 14:38:31 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c0d::241 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:211658 Archived-At: Cl=E9ment Pit-Claudel writes: > On 2017-01-27 14:10, Mark Oteiza wrote: >> - it would be nice if eww looked a little harder for an existing >> downloads directory. Perhaps what's below is too much, comments >> welcome > > This sounds like a great idea! And I'd say what's below is not > enough, actually :) For example, it fails in locales that are not > English (on French versions of Ubuntu, the Downloads folder is > "T=E9l=E9chargements"), or if users manually customized the name of that > folder (I use ~/dls). > > How hard would it be to integrate with the xdg-user-dirs standard > instead? On many GNU/Linux systems, running "xdg-user-dir DOWNLOAD" is > enough (http://stackoverflow.com/questions/13161226/). This would > make eww consistent with Firefox, too (they take the slightly more > painful route of parsing ~/.config/user-dirs.dirs: > https://dxr.mozilla.org/mozilla-release/source/xpcom/io/SpecialSystemDire= ctory.cpp#256) An xdg.el would be nice to have for elisp that interfaces with XDG-following things. mpc.el and image-dired.el are two files that come to mind: mpd follows [0], image-dired supports [1]. Actually, it looks like those are the only two files with XDG bits, and I put them there. How about that. Anyways, these aren't difficult to implement. If it would be a welcome addition I'd have a go at writing it. [0] https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html [1] https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-la= test.html P.S. Please Cc: