I added Deluge
in Startup applications
and sometimes after restart or shutdown, Deluge
won't start. If I try to run it in terminal then I get the next error:
vas@LenovoZ580:~$ deluge
[ERROR ] 11:18:36 ipcinterface:156 Deluge restart failed: Couldn't listen on any:/home/vas/.config/deluge/ipc/deluge-gtk: Cannot acquire lock.
If I delete /home/vas/.config/deluge/ipc/deluge-gtk
and /home/vas/.config/deluge/ipc/deluge-gtk.lock
then Deluge
starts normally.
How can I set that when I restart or shutdown the laptop, these 2 files to be deleted if they exist?