View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#27
Originally Posted by Schturman View Post
I don't understand, you need fingerterm to be opened ?
If no... Just create helper if you need to run you script as ROOT...

P.S. Also to detect if it enabled or disabled, you can use this command (as root):
Code:
if [[ $(mcetool --status|grep Flipover|awk '{print $4}') == enabled ]]; then
//do something
else
//do something
fi
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).
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..