Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2670

Ignore "start on boot" option setter errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 5.2.2
    • Component/s: OS Integration
    • Release Notes Summary:
      [macOS] Start On Boot Option
    • Release Notes Description:
      Hide

      If, for a reason or another, the user does not have rights to write in their own local folders (typically the $HOME/Library/LaunchAgents folder), then the app cannot be registered to start on boot.
      We mitiged the issue by simply logging a warning as there is not much more that can be done.

      Show
      If, for a reason or another, the user does not have rights to write in their own local folders (typically the $HOME/Library/LaunchAgents folder), then the app cannot be registered to start on boot. We mitiged the issue by simply logging a warning as there is not much more that can be done.
    • Sprint:
      nxDrive 11.2.21
    • Story Points:
      1

      Description

      Situation

      If the user did not allow the app to access to its local files, the app will crash:

      Traceback (most recent call last):
        File “nxdrive/__main__.py”, line 69, in main
        File “nxdrive/commandline.py”, line 546, in handle
        File “nxdrive/commandline.py”, line 586, in launch
        File “nxdrive/commandline.py”, line 565, in _get_application
        File “nxdrive/gui/application.py”, line 194, in __init__
        File “nxdrive/gui/application.py”, line 323, in init_gui
        File “nxdrive/gui/application.py”, line 462, in _fill_qml_context
        File “nxdrive/manager.py”, line 260, in get_metrics
        File “nxdrive/manager.py”, line 592, in get_auto_start
        File “nxdrive/utils.py”, line 457, in wrapper
        File “nxdrive/osi/darwin/darwin.py”, line 155, in startup_enabled
        File “pathlib.py”, line 1439, in is_file
        File “pathlib.py”, line 1221, in stat
      PermissionError: [Errno 13] Permission denied: ‘/Users/USER/Library/LaunchAgents/org.nuxeo.drive.plist’
      

      Solution

      Simply ignore the error. It should not make the app to crash.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m