Revision: 6508
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6508&view=rev
Author:   hofman
Date:     2010-04-30 17:00:41 +0000 (Fri, 30 Apr 2010)

Log Message:
-----------
search app bundle for tex editor command first because the installed version 
may be stale, in particular for emacsclient

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

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2010-04-30 15:12:06 UTC (rev 6507)
+++ trunk/SKMainDocument.m      2010-04-30 17:00:41 UTC (rev 6508)
@@ -1554,10 +1554,10 @@
             if ([editorPreset isEqualToString:@""] == NO) {
                 if ((path = [[NSWorkspace sharedWorkspace] 
fullPathForApplication:editorPreset]) &&
                     (appBundle = [NSBundle bundleWithPath:path])) {
-                    [searchPaths addObject:[appBundle sharedSupportPath]];
-                    [searchPaths addObject:[appBundle resourcePath]];
                     if ([editorPreset isEqualToString:@"BBEdit"] == NO)
-                        [searchPaths addObject:[[appBundle executablePath] 
stringByDeletingLastPathComponent]];
+                        [searchPaths insertObject:[[appBundle executablePath] 
stringByDeletingLastPathComponent] atIndex:0];
+                    [searchPaths insertObject:[appBundle resourcePath] 
atIndex:0];
+                    [searchPaths insertObject:[appBundle sharedSupportPath] 
atIndex:0];
                 }
             } else {
                 [searchPaths addObjectsFromArray:[[NSFileManager 
defaultManager] applicationSupportDirectories]];


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

------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to