Very weird and random issue with Execute plugin

Suggest, post, or discuss plugins for Deluge
Post Reply
gabrielfin

Very weird and random issue with Execute plugin

Post by gabrielfin »

Hi,
I'm having a very weird issue with the execute plugin. I have a script that runs when torrent is added, that displays a notification (through notify-send) and plays a sound with paplay. The problem is that after a long while (next day for example) the notification doesn't show up anymore, but the sound does play. The only thing that fixes it is stopping and restarting the daemon. Here is my script:

Code: Select all

#!/bin/bash
TORRENT_ID="$1"
SAVE_PATH="$3"
NAME="$2"

notify-send -u critical -a Deluge -i "/home/gabriel/.local/share/scripts/deluge/torrent_added.png" "Torrent added" "$NAME"
paplay "/home/gabriel/.local/share/sounds/Windows XP Balloon.wav" --volume=60000
Previously I had a longer version of the script, that changed the emblem of the downloading file. And that also stops working, like with notify-send. It was someting like:

Code: Select all

gvfs-set-attribute -t stringv "${SAVE_PATH}/${NAME}" metadata::emblems down
I also tried adding other things, to see what works and what doesn't, and the following does keep working:

- echo "something" > somefile
- mkdir
- rm
- ln

I have run deluge with debug on and didn't see anything out of the ordinary.

So, what do you think? Can someone help me?
Post Reply