all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 30305@debbugs.gnu.org
Subject: [bug#30305] [PATCH] gnu: Add python-send2trash.
Date: Sat, 10 Feb 2018 11:46:09 +0300	[thread overview]
Message-ID: <87sha9mdv2.fsf@gmail.com> (raw)
In-Reply-To: <873729yg5c.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 09 Feb 2018 23:03:43 +0100")

[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]

ludo@gnu.org (Ludovic Courtès) writes:
 
  >> +    (description "This package provides a Python library to send files to the
  >> +user's Trash directory.")
  > 
  > s/Trash/@file{~/Trash}/

Maybe “@file{@var{XDG_DATA_HOME}/Trash}”?  Could be not a “~”, because
the library uses “XDG_DATA_HOME” variable.  From the source tarball:
--8<---------------cut here---------------start------------->8---
./send2trash/plat_other.py:49:HOMETRASH_B = op.join(XDG_DATA_HOME, b'Trash')
--8<---------------cut here---------------end--------------->8---

  > You’d also need to set the ‘python2-variant’ property here because your
  > python2 variant is not a direct translation (see other packages in this
  > file as an example).

--8<---------------cut here---------------start------------->8---
(define-public python2-send2trash
  (package
    …
    (properties `((python2-variant . ,(delay python-send2trash))))))
--8<---------------cut here---------------end--------------->8---

Thanks,
Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2018-02-10  8:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-31 13:28 [bug#30305] [PATCH] gnu: Add python-send2trash Oleg Pykhalov
2018-02-06 15:24 ` Ludovic Courtès
2018-02-09 20:21   ` Oleg Pykhalov
2018-02-09 22:03     ` Ludovic Courtès
2018-02-10  8:46       ` Oleg Pykhalov [this message]
2018-06-22 19:47 ` [bug#30305] " Gábor Boskovits
2018-06-23 16:52   ` bug#30305: " Oleg Pykhalov

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=87sha9mdv2.fsf@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=30305@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /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/guix.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.