Opened 11 years ago

Closed 11 years ago

#4127 closed Bug (fixed)

Torrent complete script doesn't pass on the environment

Reported by: geirha Owned by: jordan
Priority: Normal Milestone: 2.30
Component: libtransmission Version: 2.22
Severity: Normal Keywords:
Cc:

Description

The only environment variables available to the script is the TR_* vars set by transmission. This makes it a hell to create scripts that'll actually run when the torrent is completed (since you're missing HOME and PATH and other commonly relied upon environment variables).

I'm attaching a patch that passes transmission's environment to the process, with the TR_* variables appended.

Attachments (1)

append_env_instead_of_resetting.patch (441 bytes) - added by geirha 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by geirha

comment:1 Changed 11 years ago by jordan

  • Milestone changed from None Set to 2.30
  • Status changed from new to assigned

comment:2 Changed 11 years ago by jordan

  • Resolution set to fixed
  • Status changed from assigned to closed

r12178 libtransmission/torrent.c: (trunk libT) #4127 "Torrent complete script doesn't pass on the environment" -- fixed with patch from geirha.

Note: See TracTickets for help on using tickets.