Parametrs for remote program.

Asked by Anton Lashkov

Hello.
I want to launch notify-osd, when downloading finished.
I write " notify-send -i qbittorrent "Downloading finished" "%f" " in settings, but i want to see name of the torrent instead of torrent folder.
Is there an parametr like %f for torrent name?

Question information

Language:
English Edit question
Status:
Solved
For:
qBittorrent Edit question
Assignee:
No assignee Edit question
Solved by:
Anton Lashkov
Solved:
Last query:
Last reply:
Revision history for this message
Christophe Dumez (hydr0g3n) said :
#1

Could you explain the difference between the torrent name and the torrent folder? For me they are basically the same (for multi-files torrents). Or is this because you manually rename the torrent and you would like %f to reflect this change?

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#2

Also, if I remember correctly (I would need to double check the code), qBittorrent already uses libnotify to notify the user when a torrent has finished downloading. If you don't see these notifications, this probably means that libnotify-dev was missing when compiling qBittorrent.

Revision history for this message
Anton Lashkov (onto) said :
#3

1) If I download a lot of single files in same folder, I don't see name of files.

2) I think, that's true, because qbittorrent don't depends notify-bin.

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#4

1) If I download a lot of single files in same folder, I don't see name of files.
Ok, I'll see what I can do to improve this over the week end.

2) I think, that's true, because qbittorrent don't depends notify-bin.
It is an optional dependency. I try to make as many dependencies as possible optional. Some distributions choose not to build against libnotify-dev for some reason (probably to minimize non-default dependencies on some window managers, maybe like KDE).

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#5

Ok, I checked the code. %f is indeed the path and I don't have any other parameter right now.
I'll add %n (for torrent name) in v2.7.0 (To be released within a week).

Revision history for this message
Anton Lashkov (onto) said :
#6

Thanks!