[prev in list] [next in list] [prev in thread] [next in thread]
List: mandrake-cooker
Subject: Re: [Cooker] net_applet does not switch profile
From: Luis Alves <luis.alves () lafaspot ! com>
Date: 2005-03-29 9:49:12
Message-ID: 200503290149.13003.luis.alves () lafaspot ! com
[Download RAW message or body]
Hi fred
On the new mandrake at boot time if you have multiple profiles the fullscreen tunrs \
grey to allow you to select the network profile. This is ugly and not very intuitive \
in my opinion, and breaks mandrake branding by leaving the screen grey after that \
point.
Here is my sugestion:
- in the boot just select the last profile selected or use default one.
- after the boot when the user logs in, on the desktop you can ask witch profile he
wants to use when net_applet is started.
- Allow the profile to change in the present off a specifiy conditions would a good \
idea. Example: If my home network is detected, it will switch profile to the home \
profile. In case it detects the work network it would use the work profile.
In case it detects that I am using a public network, example no encryption then it \
use the secure profile.
On Thursday 24 March 2005 06:51 am, Frederic Lepied wrote:
> Olivier Blin <oblin@mandrakesoft.com> writes:
>
> > Olivier Blin <oblin@mandrakesoft.com> writes:
> >
> > > Luis Alves <luis.alves@lafaspot.com> writes:
> > >
> > > > On Thursday 24 March 2005 01:25 am, Olivier Blin wrote:
> > > > > network::tools::bg_command_as_root('/sbin/set-netprofile', \
> > > > > $netcnx->{PROFILE});
> > > >
> > > > It works but it never updates the GUI after the system is changed to the new \
> > > > profile, so from the user point of view it looks like is not updated.
> > >
> > > Right, I reload the configuration right after set-netprofile is set,
> > > but since this program is run in background, net_applet may still
> > > reload the old configuration ...
> > >
> > > > Also if you change the profile in drakconf, net_applet never reflects the \
> > > > chage made in drakconf, unless you restart it manually.
> > >
> > > Hmm, that's quite tricky to do.
> > > Maybe I could reload the configuration every minute or so, but there
> > > is no easy way to do so.
> >
> > As suggested on IRC by couriousous, we could notify net_applet of a
> > profile change with a signal.
> > Fred, do you mind if I add the following in set-netprofile ?
> > (restoreprofile function)
>
> ok
>
> > --- set-netprofile.~1.15.~ 2005-03-24 09:32:22.000000000 +0100
> > +++ set-netprofile 2005-03-24 13:34:17.000000000 +0100
> > @@ -75,6 +75,10 @@
> > /etc/init.d/$s start
> > done
> > fi
> > +
> > + # make net_applet reload the configuration
> > + PID=`pidof -x net_applet`
> > + [[ -n "$PID" ]] && kill -HUP $PID
> > }
> >
> > if [[ $# -gt 1 ]]; then
>
--
___________________________________________________________________________
Luis Antonio Ferreira Alves
email: luis.alves@lafaspot.com http://www.lafaspot.com
YAHOO-lafa_home ICQ-5061305 AIM-lalvesnet AIM-lalves AIM-lafasvl
___________________________________________________________________________
Get Firefox! http://www.spreadfirefox.com/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic