Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10391

Register the Nuxeo Drive data folder as a Favorite in OSX Finder

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Nuxeo Drive
    • Tags:
    • Backlog priority:
      600

      Description

      The newly created ~/Nuxeo Drive folder is not easily accessible under OSX especially under 10.8 / Mountain Lion where the home folder is not visible by default in the finder and other "file browse" menu typically used to open or save a document in applications such as LibreOffice or Keynote.

      We should thus register the Nuxeo Drive folder as a Finder favorite when creating it.

      To achieve this, we can use the Foundation / LaunchServices API available from PyObjC on OSX platforms:

      http://www.opensource.apple.com/source/pyobjc/pyobjc-26/pyobjc/pyobjc-framework-LaunchServices/PyObjCTest/test_lssharedfilelist.py

      For instance, we could do something such as:

      from LaunchServices import *
      lst = LSSharedFileListCreate(None, kLSSharedFileListFavoriteItems, None)
              item = LSSharedFileListInsertItemURL(lst, kLSSharedFileListItemBeforeFirst, "Nuxeo Drive", None, 
                      CFURLCreateWithString(None, "file:///Users/user/Nuxeo Drive", None), {}, [])
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified