Brad, thanks for the reply.
Unfortunately, your idea does not work. Here is why...
I have been taking a close look at the process names, and I am now thoroughly confused.
If I add
virtualbox to Caffeine's list, I can see that Caffeine recognises it, because (1) it adds the Virtual Box logo next to the item, and (2) it suspends the screen-saver when I start Virtual Box.
However, if I instead add
VirtualBox (note the change in case), Caffeine does neither.
The process names for Virtual Box are:
- /usr/lib/virtualbox/VirtualBox
- /usr/lib/virtualbox/VBoxXPCOMIPCD
- /usr/lib/virtualbox/VBoxSVC --auto-shutdown
I notice that Deluge is somewhat different. Caffeine does not recognise it in the list (i.e. no logo and no suspend) whether I use
deluge or
Deluge. However, I notice the Deluge is, in fact, a Python program, and so the process name is Python's with Deluge as the parameter:
- /usr/bin/python /usr/bin/deluge-gtk
That may well explain why Caffeine does not recognise it.
Creating a wrapper does exactly the same thing, sadly. I wrote a tiny script to start Deluge, hoping for Caffeine to catch that name, but it does not. Look at the process name:
- /bin/bash /home/paddy/bin/startDeluge
It's no good having Caffeine check for
python or
bash, since there are always such processes running!
Is there any documentation that explains how Caffeine checks for process names? That may help me find what to do. It would also explain why Caffeine recognises
virtualbox but not
VirtualBox. (I don't know Python, so trying to look through the code would probably take me days, if not weeks!)