r19515 - gnucash/trunk/src/core-utils - Update binreloc to use the free functions for bundle id and resource path

John Ralls jralls at code.gnucash.org
Mon Aug 30 18:42:15 EDT 2010


Author: jralls
Date: 2010-08-30 18:42:15 -0400 (Mon, 30 Aug 2010)
New Revision: 19515
Trac: http://svn.gnucash.org/trac/changeset/19515

Modified:
   gnucash/trunk/src/core-utils/binreloc.c
Log:
Update binreloc to use the free functions for bundle id and resource path

Modified: gnucash/trunk/src/core-utils/binreloc.c
===================================================================
--- gnucash/trunk/src/core-utils/binreloc.c	2010-08-30 18:38:26 UTC (rev 19514)
+++ gnucash/trunk/src/core-utils/binreloc.c	2010-08-30 22:42:15 UTC (rev 19515)
@@ -34,7 +34,7 @@
 /** @internal
  * Find the canonical filename of the executable. Returns the filename
  * (which must be freed) or NULL on error. If the parameter 'error' is
- * not NULL, the error code will be stored there, if an error occurred.
+ * not NULL, the error code will be stored there, if an error occured.
  */
 static char *
 _br_find_exe (Gnc_GbrInitError *error)
@@ -49,7 +49,7 @@
        relocation code for windows. Unfortunately this is not
        the case and we have to add this manually. This is only
        one possibility; other ways of looking up the full path
-       of gnucash.exe probably exist.*/
+       of gnucash-bin.exe probably exist.*/
     gchar *prefix;
     gchar *result;
 
@@ -58,7 +58,7 @@
        the current process */
     prefix = g_win32_get_package_installation_directory_of_module (NULL);
     result = g_build_filename (prefix,
-                               "bin", "gnucash.exe",
+                               "bin", "gnucash-bin.exe",
                                (char*)NULL);
     g_free (prefix);
     return result;
@@ -364,9 +364,8 @@
 gnc_gbr_find_prefix (const gchar *default_prefix)
 {
 #if defined ENABLE_BINRELOC && defined MAC_INTEGRATION
-    GtkOSXApplication* theApp  = g_object_new (GTK_TYPE_OSX_APPLICATION, NULL);
-    gchar *id = gtk_osxapplication_get_bundle_id (theApp);
-    gchar *path = gtk_osxapplication_get_resource_path (theApp);
+    gchar *id = quartz_application_get_bundle_id ();
+    gchar *path = quartz_application_get_resource_path ();
     if (id == NULL)
     {
         gchar *dirname = g_path_get_dirname (path);



More information about the gnucash-changes mailing list