I have installed awesome on top of Ubuntu 10.04
and switch between Gnome and Awesome sessions (partly because I am still learning awesome and partly because I use a few apps that require Gnome desktop). Further I need to use a proxy server @ work whereas @ home I have a direct connection.
Under GNOME, I have defined 2 locations with gnome-network-properties
(hereafter, g-n-p) and switch between these as needed.
However, when I login to awesome, I am left with the settings as set in my last GNOME session. I can't invoke g-n-p because it needs gnome-settings-daemon
to be running which is of course not the case. If I need to change I need to logout and in twice (once into GNOME to switch location and then back into awesome). Since I use many apps within awesome that use system proxy settings (Synaptic, Firefox) I'd like to be able to centrally switch the proxy configuration without leaving the awesome desktop.
I understand running gnome-network-properties sets some gconf-editor keys and also updates *_proxy environment vars in /etc/environment
(and probably elsewhere also). Is there a way to achieve the same effect via a script or some replacement tool for g-n-p that doesn't use gnome-settings-daemon
?
You can start
gnome-settings-daemon
as part of your Awesome start up process. I usually invoke it manually when needed.Add this to your
~/.config/awesome/rc.lua
file: awful.util.spawn_with_shell("gnome-settings-daemon")… if you want to run it on startup. For me, at least, this was a lot easier than any other method I've tried.
I made a script to be asked for passwords, now I can use gnome-network-properties apply system-wide without running gnome-settings-daemon.
Since you're using Awesome (as I do :) ) you might be interested in a solution that is not dependend on running the gnome-blob-softwares...
Here is the script that I run when Awesome starts (in fact I have a "master" script that is ran from ~/.config/awesome/rc.lua and that launches this script)