[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30305] [PATCH] gnu: Add python-send2trash.
From: |
Oleg Pykhalov |
Subject: |
[bug#30305] [PATCH] gnu: Add python-send2trash. |
Date: |
Sat, 10 Feb 2018 11:46:09 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
address@hidden (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 address@hidden@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.
signature.asc
Description: PGP signature