Thanks Schturman, but all you have done is confuse me more than I already am! So, okay, I don't necessarily need fingerterm to be opened, it was something I had stumbled across and thought it was suitable at this point to use as notification that the service is enabled/disabled. One of the reasons I went with terminal opening and displaying enabled/disabled was so I didn't have to see the cover with the busy indicator on it - which stays on screen from around 12 seconds..?, yet the process is done as soon as the command/script is executed, so why the lengthy wait for cover/indicator to close. I'm to understand this cannot be avoided or closed, it has to run til its finished. So, you are saying I should replace my Toggle script with your 'helper' script, yes?, (if so, I tried it, I also removed 'fingerterm -e' from 'Exec=' in desktop file just leaving /path/to/file/blah.sh). But when exectued, this just shows cover and busy indicator/cover for 12 seconds again. I'd like to not see that cover! (Yes, the service is still getting switched, but I had that happening anyway).
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> int main() { setuid( 0 ); system( "/path/to/your/script.sh"); return 0; }
gcc /path/to/helper.c -o /path/to/your/script-root
Exec=/path/to/your/script-root