From cc951427537cd87c765fb3414d25ec942b6a4d6c Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 27 Nov 2010 22:03:26 +0000 Subject: [PATCH] [spinner] Remove SparkleLib reference --- SparkleShare/SparkleShare.cs | 5 ++--- SparkleShare/SparkleSpinner.cs | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/SparkleShare/SparkleShare.cs b/SparkleShare/SparkleShare.cs index ee9198f9..e2579056 100644 --- a/SparkleShare/SparkleShare.cs +++ b/SparkleShare/SparkleShare.cs @@ -47,10 +47,9 @@ namespace SparkleShare { // Use translations Catalog.Init (Defines.GETTEXT_PACKAGE, Defines.LOCALE_DIR); - UnixUserInfo user_info = new UnixUserInfo (UnixEnvironment.UserName); - + // Don't allow running as root - if (user_info.UserId == 0) { + if (new UnixUserInfo (UnixEnvironment.UserName).UserId == 0) { Console.WriteLine (_("Sorry, you can't run SparkleShare with these permissions.")); Console.WriteLine (_("Things would go utterly wrong.")); diff --git a/SparkleShare/SparkleSpinner.cs b/SparkleShare/SparkleSpinner.cs index 4cdcd601..c031ff12 100644 --- a/SparkleShare/SparkleSpinner.cs +++ b/SparkleShare/SparkleSpinner.cs @@ -16,7 +16,6 @@ using Gtk; using System.Timers; -using SparkleLib; namespace SparkleShare {