[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] checking eww download directory

From: Mark Oteiza
Subject: Re: [PATCH] checking eww download directory
Date: Fri, 27 Jan 2017 15:17:10 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Clément Pit-Claudel <address@hidden> 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éléchargements"), 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/SpecialSystemDirectory.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

P.S. Please Cc:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]