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
Code: Select all
gvfs-set-attribute -t stringv "${SAVE_PATH}/${NAME}" metadata::emblems down
- 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?