-
Notifications
You must be signed in to change notification settings - Fork 914
feat(macOS): Replace UNIX sockets with XPC #9463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
i2h3
wants to merge
2
commits into
master
Choose a base branch
from
i2h3/feature/9430-all-xpc
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,745
−757
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 0 additions & 69 deletions
69
...gration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderSocketLineProcessor.swift
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
shell_integration/MacOSX/NextcloudIntegration/FinderSyncAppProtocol.h
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this duplicate of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors | ||
| * SPDX-License-Identifier: GPL-2.0-or-later | ||
| */ | ||
|
|
||
| #ifndef FinderSyncAppProtocol_h | ||
| #define FinderSyncAppProtocol_h | ||
|
|
||
| #import <Foundation/Foundation.h> | ||
|
|
||
| /** | ||
| * @brief The main app APIs exposed through XPC. | ||
| * | ||
| * This protocol is implemented by the main Nextcloud app and allows the FinderSync | ||
| * extension to query file statuses, menu items, and execute commands via XPC. | ||
| */ | ||
| @protocol FinderSyncAppProtocol | ||
|
|
||
| /** | ||
| * @brief Retrieve the sync status for a file. | ||
| * @param path The absolute path to the file. | ||
| * @param completionHandler Callback with status string (e.g., "SYNC", "OK", "ERROR") or error. | ||
| */ | ||
| - (void)retrieveFileStatusForPath:(NSString *)path | ||
| completionHandler:(void(^)(NSString *status, NSError *error))completionHandler; | ||
|
|
||
| /** | ||
| * @brief Retrieve the sync status for a folder. | ||
| * @param path The absolute path to the folder. | ||
| * @param completionHandler Callback with status string (e.g., "SYNC", "OK", "ERROR") or error. | ||
| */ | ||
| - (void)retrieveFolderStatusForPath:(NSString *)path | ||
| completionHandler:(void(^)(NSString *status, NSError *error))completionHandler; | ||
|
|
||
| /** | ||
| * @brief Get localized strings for the FinderSync extension UI. | ||
| * @param completionHandler Callback with dictionary of string keys and localized values, or error. | ||
| */ | ||
| - (void)getLocalizedStringsWithCompletionHandler:(void(^)(NSDictionary<NSString *, NSString *> *strings, NSError *error))completionHandler; | ||
|
|
||
| /** | ||
| * @brief Get context menu items for the given paths. | ||
| * @param paths Array of absolute paths for which to get menu items. | ||
| * @param completionHandler Callback with array of menu item dictionaries (command, flags, text) or error. | ||
| */ | ||
| - (void)getMenuItemsForPaths:(NSArray<NSString *> *)paths | ||
| completionHandler:(void(^)(NSArray<NSDictionary *> *menuItems, NSError *error))completionHandler; | ||
|
|
||
| /** | ||
| * @brief Execute a menu command for the given paths. | ||
| * @param command The command identifier (e.g., "SHARE", "ACTIVITY"). | ||
| * @param paths Array of absolute paths on which to execute the command. | ||
| * @param completionHandler Callback with error if execution failed, or nil on success. | ||
| */ | ||
| - (void)executeMenuCommand:(NSString *)command | ||
| forPaths:(NSArray<NSString *> *)paths | ||
| completionHandler:(void(^)(NSError *error))completionHandler; | ||
|
|
||
| @end | ||
|
|
||
| #endif /* FinderSyncAppProtocol_h */ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSyncSocketLineProcessor.h
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: progress.completedUnitCount is being set to 1 instead of incremented. This should be
progress.completedUnitCount += 1orprogress.completedUnitCount++to properly track progress. Currently, it will always show as 1 out of N items completed, never reaching 100%.