Suggestion: Ubuntu Tweak Startup Check

Asked by Alessio L. on 2011-01-15

Hi again,

I'm wondering if maybe this feature is already included in UT, but to be sure I'll ask for it the same.

I suggest a startup check for Network availability and for program interferences (such as synaptic, a terminal running 'sudo apt-get ....', etc.) and for the battery status.

For the network part, a test on

ping -c 1 www.google.*

or similar wuold do the trick.

In a 'no network' case, some features would be disabled (entering a minimal UT mode) or a warning displayed or both.

For the 'interferences part', there is a part of a script of Alin Andrei ( http://www.webupd8.org ):

for lock in synaptic update-manager software-center apt-get dpkg aptitude; do
   if ps -U root -u root u | grep $lock | grep -v grep > /dev/null; then
       * $lock is currently active *
   fi
done

This is bash but I think you can easily understand it.

That can prevent some errors using 2 synaptic or similar.

The last one can be useless (maybe the 2 above too), but I suggest it the same, the battery check.

A control if the computer is running with just the battery on.

If the battery is low, a warning can be displayed before the program start up to remind that the program can have some errors due to an imminent and forced shut down.

If the battery is critical, a similar warning wuold be shown only (with critical battery it's very very possibly that the program would shut down while doing something important) and the program wuold close itself after.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Tweak Edit question
Assignee:
No assignee Edit question
Last query:
2011-01-15
Last reply:
2011-01-16
Ding Zhou (tualatrix) said : #1

Hello, Thanks for your idea, it's not included in Ubuntu Tweak yet. So I will try to add it in the future release.

Can you help with this problem?

Provide an answer of your own, or ask Alessio L. for more information if necessary.

To post a message you must log in.