Index: beagled/BeagleDaemon.cs =================================================================== RCS file: /cvs/gnome/beagle/beagled/BeagleDaemon.cs,v retrieving revision 1.57 diff -u -B -p -r1.57 BeagleDaemon.cs --- beagled/BeagleDaemon.cs 12 Mar 2005 05:33:18 -0000 1.57 +++ beagled/BeagleDaemon.cs 21 Mar 2005 17:50:57 -0000 @@ -312,6 +312,12 @@ namespace Beagle.Daemon { } catch (Exception ex) { } + if (Environment.UserName == "root") { + Logger.Log.Error ("You can not run beagle as root."); + Logger.Log.Error ("Beagle is designed to be run from your own user account."); + Environment.Exit (-1); + } + // Make sure that extended attributes can be set. If not, bail out with a message. // FIXME FIXME FIXME: This assumes that EAs work the same on your storage dir // as they do on your home dir, which is obviously not a good assumption.