[Top][All Lists]

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

xdgdirs 1.0

From: Thien-Thi Nguyen
Subject: xdgdirs 1.0
Date: Thu, 05 Sep 2013 12:42:55 +0200

Greetings earthlings,

I'm contemplating adding XDG basedirs support to GNU Alive and GNU
Serveez, so the obvious approach is classic modularity: write the
functionality once and somehow make it available.  It's no big deal to
start w/ ‘define-module’, but then the questions begin:

 - What is a good module name?
 - What package does it belong to?
 - Does the use case justify keeping all this code in memory?
 - Is this really "write once"?
   - What about Lisp programs?
   - What about programs (in any language) that can ‘read’ sexps?

The functionality is basically using ‘getenv’ and ‘parse-path’ to
produce easily-serialized data (strings and lists of strings), amenable
to piping and other textual manipulations.  So, why not a standalone

As to the packaging, for a bit i mulled over a "XDG Utils" package with
only one program to start, but that would be succumbing to my bad habit
of overengineering things, so i'm glad to say that bit was short-lived.

Anyway, here it is:

Attachment: xdgdirs
Description: application/scheme

Installation is simple:

 # install xdgdirs /usr/local/bin

The program supports ‘--help’ and ‘--version’, which must suffice in
lieu of proper documentation, for now.  Maybe some future release...

Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

Attachment: pgp4voXwgAvQu.pgp
Description: PGP signature

reply via email to

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