[geany/geany-osx] ad4fef: Fix path to immodules.cache plus minor changes of the launcher

Jiří Techet git-noreply at xxxxx
Wed Oct 23 16:13:52 UTC 2019


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Wed, 23 Oct 2019 16:13:52 UTC
Commit:      ad4fef08233fd60de2abf5e70afdf8eda13df3e3
             https://github.com/geany/geany-osx/commit/ad4fef08233fd60de2abf5e70afdf8eda13df3e3

Log Message:
-----------
Fix path to immodules.cache plus minor changes of the launcher


Modified Paths:
--------------
    LauncherGtk3/geany/geany/main.m

Modified: LauncherGtk3/geany/geany/main.m
12 lines changed, 6 insertions(+), 6 deletions(-)
===================================================================
@@ -67,8 +67,7 @@ static int fill_argv_array(const char *arr[], NSArray<NSString *> *array) {
 static int run_geany() {
     NSString *bundle_dir = [[NSBundle mainBundle] bundlePath];
     
-    NSString *bundle_contents = [bundle_dir stringByAppendingPathComponent: @"Contents"];
-    NSString *bundle_resources = [bundle_contents stringByAppendingPathComponent: @"Resources"];
+    NSString *bundle_resources = [bundle_dir stringByAppendingPathComponent: @"Contents/Resources"];
     NSString *bundle_lib = [bundle_resources stringByAppendingPathComponent: @"lib"];
     NSString *bundle_share = [bundle_resources stringByAppendingPathComponent: @"share"];
     NSString *bundle_etc = [bundle_resources stringByAppendingPathComponent: @"etc"];
@@ -86,18 +85,19 @@ static int run_geany() {
         @"GTK_PATH": bundle_resources,
         @"GTK_EXE_PREFIX": bundle_resources,
         @"GTK_DATA_PREFIX": bundle_resources,
-        @"GTK_IM_MODULE_FILE": [bundle_etc stringByAppendingPathComponent: @"gtk-3.0/gtk.immodules"],
+        @"GTK_IM_MODULE_FILE": [bundle_lib stringByAppendingPathComponent: @"gtk-3.0/3.0.0/immodules.cache"],
         @"GDK_PIXBUF_MODULE_FILE": [bundle_lib stringByAppendingPathComponent: @"gdk-pixbuf-2.0/2.10.0/loaders.cache"],
         
-        //Locale variables
         @"LANG": lang,
         @"LC_MESSAGES": lang,
         @"LC_MONETARY": lang,
         @"LC_COLLATE": lang,
         @"LC_ALL": lang,
         
-        //Geany variables
+        //TODO: replace with XDG_DATA_DIRS in Geany
         @"GEANY_PLUGINS_SHARE_PATH": [bundle_share stringByAppendingPathComponent: @"geany-plugins"],
+        
+        //patched in https://gitlab.gnome.org/GNOME/gtk-osx/blob/master/patches/enchant-env.patch
         @"ENCHANT_MODULE_PATH": [bundle_lib stringByAppendingPathComponent: @"enchant"],
     };
     
@@ -141,7 +141,7 @@ too late (apparently they are read already when some of the libraries are loadin
         dlclose(lib_handle);
     }
     else {
-        NSLog(@"dlopen() failed");
+        NSLog(@"dlopen() failed (possibly unsigned libgeany.0.dylib)");
     }
     
     return ret;



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list