all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "francisco.colaco\@gmail.com" <francisco.colaco@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: xdg-directories.el
Date: Wed, 07 Sep 2016 18:54:34 +0300	[thread overview]
Message-ID: <83inu7aeo5.fsf@gnu.org> (raw)
In-Reply-To: <CACwYkzzB9UR3uF1=e5o739xyYgq6WNYyY2w0GoQgGghG+ERByQ@mail.gmail.com> (francisco.colaco@gmail.com)

> From: "francisco.colaco@gmail.com" <francisco.colaco@gmail.com>
> Date: Wed, 7 Sep 2016 16:31:18 +0100
> Cc: Emacs developers <emacs-devel@gnu.org>
> 
> I have seen once again the source code for xdg-user-dir, and there is no environment variables until one runs
> ~/.config/user-dirs.dirs (or the file in $XDG_CONFIG_HOME). That is how, _in the script_, the environment
> variables for user directories are set. They aren't normally set, only get set for specific packages.
> 
> We would either have to read the lines of user-dirs.dirs and get the values after the = sign and inside the
> quotes; or execute the file through a shell, as intended, and read the directory names from the environment
> values. I would not bet on a simple file readout, for one day someone will end up replacing a directory name by
> a backticked shell script.
> 
> Now, I remember why I have used xdg-user-dirs in the first place for the user directories: not using it would be
> reimplementing it in Emacs Lisp, a needless effort. 
> 
> If xdg-user-dirs does not exist then there is no point in having a PICTURES or DOCUMENTS user directory. In
> MS Windows the directories are determined in a totally different method. In OSX almost all goes to ~/Library,
> according to an answer to
> http://stackoverflow.com/questions/3373948/equivalents-of-xdg-config-home-and-xdg-data-home-on-mac-os-x

If the script is only run to find the PICTURES and DOCUMENTS
directories, then at least on Windows those could be found by
alternative means that don't use any scripts.  (We don't currently
have a Lisp-visible API for that, but it'd be easy to add.)

On OS X, it sounds like we should simply put different default values,
and be done.

> So, to perfect the package in order to have a solid candidate, can you suggest new function names?

For which functions?



  reply	other threads:[~2016-09-07 15:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06 15:24 xdg-directories.el francisco.colaco
2016-09-06 21:49 ` xdg-directories.el Noam Postavsky
2016-09-06 22:37   ` xdg-directories.el francisco.colaco
2016-09-07  0:35     ` xdg-directories.el Stefan Monnier
2016-09-07 14:18 ` xdg-directories.el Eli Zaretskii
2016-09-07 14:59   ` xdg-directories.el francisco.colaco
2016-09-07 15:21     ` xdg-directories.el Stefan Monnier
2016-09-07 15:31     ` xdg-directories.el francisco.colaco
2016-09-07 15:54       ` Eli Zaretskii [this message]
2016-09-07 16:13         ` xdg-directories.el francisco.colaco
2016-09-07 16:28           ` xdg-directories.el francisco.colaco
2016-09-07 17:32           ` xdg-directories.el Eli Zaretskii
     [not found]             ` <CACwYkzyjV2jsTX3Cb0Us4tz1WsUP=avurw04Kgq8k52oBZRg_Q@mail.gmail.com>
2016-09-07 18:21               ` xdg-directories.el Eli Zaretskii
2016-09-07 16:46         ` xdg-directories.el Stefan Monnier
2016-09-07 17:24           ` xdg-directories.el Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83inu7aeo5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=francisco.colaco@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.