Toggle WiFi button in panel?


Silent-Hunter

Hardcore Member
Joined
May 29, 2010
Messages
3,485
I would have done this already, but I don't know the name of the program behind the menu entry.
 
Anything extra we need to know for this? I tried creating a launcher with this, and it pops up the notice that it's either enabling or disabling the wifi, but it does nothing. I told it the working directory was /usr/pandora/scripts, and I also tried checking the "run this in a terminal" option.


I'm sure I'm missing something simple here.
 
Oh, sorry. Needs to be run as super user


"sudo /usr/pandora/scripts/op_wifi.sh"


Doesn't require a password.


I think there's an issue with creating a launcher which runs sudo. I can't remember the details at the moment.


If creating your wifi button with the command "sudo /usr/pandora/scripts/op_wifi.sh" doesn't work, create a script in your home directory that does, and then make the wifi button call that script.
 
Ah, thank you. I thought that I had remembered these scripts not needing the super user, but now I remember that they simply don't need the password. It works nicely!
 
Back
Top