32
32
public static void Main (string [] args)
34
// TODO: Extract to a PreInit in Application, or something
37
Environment.GetEnvironmentVariable ("TOMBOY_PATH_PREFIX");
38
string tomboy_gtk_basepath =
39
Environment.GetEnvironmentVariable ("TOMBOY_GTK_BASEPATH");
40
Environment.SetEnvironmentVariable ("GTK_BASEPATH",
41
tomboy_gtk_basepath ?? string.Empty);
42
if (string.IsNullOrEmpty (tomboy_path)) {
43
string gtk_lib_path = null;
45
gtk_lib_path = (string)
46
Microsoft.Win32.Registry.GetValue (@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\GtkSharp",
49
} catch (Exception e) {
50
Console.WriteLine ("Exception while trying to get GTK# install path: " +
53
if (!string.IsNullOrEmpty (gtk_lib_path))
55
gtk_lib_path.Replace ("lib\\gtk-sharp-2.0", "bin");
57
if (!string.IsNullOrEmpty (tomboy_path))
58
Environment.SetEnvironmentVariable ("PATH",
61
Environment.GetEnvironmentVariable ("PATH"));
34
63
// Initialize GETTEXT
35
64
Catalog.Init ("tomboy", Defines.GNOME_LOCALE_DIR);
37
66
TomboyCommandLine cmd_line = new TomboyCommandLine (args);
38
67
debugging = cmd_line.Debug;
68
is_panel_applet = cmd_line.UsePanelApplet;
40
70
#if ENABLE_DBUS || WIN32 || MAC // Run command-line earlier with DBus enabled
41
71
if (cmd_line.NeedsExecute) {