From 6dfc3420ed35d5be192949b1c4bd2dc3cd0b9e66 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 3 Aug 2012 12:22:07 +0200 Subject: [PATCH] linux: Fix build. Closes #886 --- .gitignore | 15 --------------- SparkleShare/Linux/SparkleController.cs | 2 +- SparkleShare/Linux/SparkleSetup.cs | 4 ++-- SparkleShare/Linux/SparkleUI.cs | 11 ----------- build/build.rules.mk | 8 +------- 5 files changed, 4 insertions(+), 36 deletions(-) diff --git a/.gitignore b/.gitignore index f1eaa13b..ced64697 100644 --- a/.gitignore +++ b/.gitignore @@ -12,13 +12,9 @@ *.sln.cache *.user *.resources -po/POTFILES Makefile.in Makefile -POTFILES -SparkleLib/windows/GlobalAssemblyInfoGit.cs intltool-* -SparkleShare/data configure config.guess config.h @@ -26,35 +22,24 @@ config.h.in config.log config.status config.sub -INSTALL aclocal.m4 autom4te.cache/ bin/ obj/ -/bin/ -SparkleShare/Mac/bin install-sh libtool ltmain.sh missing -po/.intltool-merge-cache -po/Makefile.in.in -po/stamp-it -SparkleLib/AssemblyInfo.cs build/m4/shave/shave build/m4/*.m4 build/m4/shave/shave-libtool SparkleLib/Defines.cs -SparkleLib/windows/Defines.cs -SparkleLib/windows/GlobalAssemblyInfo.cs SparkleShare/Linux/sparkleshare SparkleShare/Mac/git -po/sparkleshare.pot SparkleShare/Linux/Nautilus/sparkleshare-nautilus-extension.py SparkleShare/Linux/Nautilus/sparkleshare-nautilus3-extension.py gnome-doc-utils.make /sparkleshare-* -data/plugins/*.xml desktop.ini _ReSharper.* *.msi diff --git a/SparkleShare/Linux/SparkleController.cs b/SparkleShare/Linux/SparkleController.cs index 34f9e7a4..b070ffba 100755 --- a/SparkleShare/Linux/SparkleController.cs +++ b/SparkleShare/Linux/SparkleController.cs @@ -32,7 +32,7 @@ namespace SparkleShare { public override string PluginsPath { get { - return SparkleHelpers.CombineMore (Defines.INSTALL_DIR, "plugins"); + return new string [] { Defines.INSTALL_DIR, "plugins" }.Combine (); } } diff --git a/SparkleShare/Linux/SparkleSetup.cs b/SparkleShare/Linux/SparkleSetup.cs index 11d761a8..a8137db5 100755 --- a/SparkleShare/Linux/SparkleSetup.cs +++ b/SparkleShare/Linux/SparkleSetup.cs @@ -69,12 +69,12 @@ namespace SparkleShare { Xalign = 1 }; - Entry name_entry = new Entry (Controller.GuessedUserName) { + Entry name_entry = new Entry (UnixUserInfo.GetRealUser ().RealName) { Xalign = 0, ActivatesDefault = true }; - Entry email_entry = new Entry (Controller.GuessedUserEmail) { + Entry email_entry = new Entry () { Xalign = 0, ActivatesDefault = true }; diff --git a/SparkleShare/Linux/SparkleUI.cs b/SparkleShare/Linux/SparkleUI.cs index 1b18bcaf..20304fb2 100644 --- a/SparkleShare/Linux/SparkleUI.cs +++ b/SparkleShare/Linux/SparkleUI.cs @@ -16,16 +16,8 @@ using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Runtime.InteropServices; -using System.Text; -using System.Threading; using Gtk; -using Mono.Unix; -using Mono.Unix.Native; using SparkleLib; namespace SparkleShare { @@ -46,9 +38,6 @@ namespace SparkleShare { { Application.Init (); - // Use translations - Catalog.Init (Defines.GETTEXT_PACKAGE, Defines.LOCALE_DIR); - Setup = new SparkleSetup (); EventLog = new SparkleEventLog (); About = new SparkleAbout (); diff --git a/build/build.rules.mk b/build/build.rules.mk index 7740d5a4..fc02b3a6 100755 --- a/build/build.rules.mk +++ b/build/build.rules.mk @@ -3,14 +3,8 @@ BUILD_DATA_DIR = $(top_builddir)/bin/share/$(PACKAGE) # Since all other attempts failed, we currently go this way: # This code adds the file specified in ASSEMBLY_INFO_SOURCE to SOURCES_BUILD. -# If no such file is specified, the default AssemblyInfo.cs is used. ASSEMBLY_INFO_SOURCE_REAL = \ - $(shell if [ "$(ASSEMBLY_INFO_SOURCE)" ]; \ - then \ - echo "$(addprefix $(srcdir)/, $(ASSEMBLY_INFO_SOURCE))"; \ - else \ - echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \ - fi) + $(addprefix $(srcdir)/, $(ASSEMBLY_INFO_SOURCE)) SOURCES_BUILD = $(addprefix $(srcdir)/, $(SOURCES)) SOURCES_BUILD += $(ASSEMBLY_INFO_SOURCE_REAL)