Re: dispatcher for user scripts?



On Wed, 2011-10-26 at 22:02 +0200, Bjørge Solli wrote:
> Just an idea that popped up.. Is this possible? If user is logged in,
> run scripts in users ~/networkmanager/dispatcher.d as user. Maybe
> crafting a system dispatcher script to do this could work?

It's possible, but it would require some service running in the user's
session to handle the dispatching.  There are a number of candidates
(nm-applet, gnome-shell, KDE's desktop manager, whatever) that are
already listening to NM signals and could be extended to do this.  The
thing to keep in mind is that these scripts would need to be executed in
the user's context, not as root, since the user is not necessarily
trusted.  So you don't really want anything running as the root user to
do this, you really do want something already running in the user's
session (as the user's UID) to do this.  It's an idea that's come up
before but nobody's stepped up to work on it yet.  Patches welcome!
Though those patches woudl probably best be done on the desktop's
session-manager (gnome-session, etc) instead of to nm-applet.

Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]