Revision: 12818
          http://sourceforge.net/p/skim-app/code/12818
Author:   hofman
Date:     2022-03-21 15:59:46 +0000 (Mon, 21 Mar 2022)
Log Message:
-----------
include containing directory of tex editor in search path for preset, as 
homebrew Emacs on M1 macs install it there, probably not allowed to install by 
the bubndle on M1

Modified Paths:
--------------
    trunk/SKMainDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2022-03-21 09:54:49 UTC (rev 12817)
+++ trunk/SKMainDocument.m      2022-03-21 15:59:46 UTC (rev 12818)
@@ -1492,6 +1492,8 @@
             if ([editorPreset isEqualToString:@""] == NO) {
                 if ((path = [[NSWorkspace sharedWorkspace] 
fullPathForApplication:editorPreset]) &&
                     (appBundle = [NSBundle bundleWithPath:path])) {
+                    if ((path = [[appBundle bundlePath] 
stringByDeletingLastPathComponent]))
+                        [searchPaths insertObject:path atIndex:0];
                     if ((path = [[appBundle bundlePath] 
stringByAppendingPathComponent:@"Contents"]))
                         [searchPaths insertObject:path atIndex:0];
                     if ((path = [[[appBundle bundlePath] 
stringByAppendingPathComponent:@"Contents"] 
stringByAppendingPathComponent:@"Helpers"]))

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to