Detect if AFPBridge and Marinetti are installed, and give an error/warning if not.

We indicate that AFPBridge is installed by creating a message in the message center (which also includes its version, in case we want to distinguish between different versions in the future).
This commit is contained in:
Stephen Heumann
2017-04-19 21:10:23 -05:00
parent 4bb7e378ba
commit 6be698833d
3 changed files with 73 additions and 5 deletions

View File

@@ -301,6 +301,8 @@ resource rPString(saveFilePrompt) { "Save server alias as:" };
#define aliasFileError 3003
#define tempFileNameError 3004
#define saveAliasError 3005
#define noAFPBridgeError 3006
#define noAFPBridgeWarning 3007
#define protoInvalidError 4000
#define noServerOrVolumeNameError 4001
@@ -418,3 +420,20 @@ resource rAlertString (saveAliasError) {
"There was an error while attempting to save the alias file."
":^#0\$00"
};
resource rAlertString (noAFPBridgeError) {
"62:"
"To connect to AFP servers over TCP, AFPBridge and Marinetti "
"must be installed and enabled. Please install them and then "
"restart your system."
":^#0\$00"
};
resource rAlertString (noAFPBridgeWarning) {
"74:"
"To connect to AFP servers over TCP, AFPBridge and Marinetti "
"must be installed and enabled. You can continue to save an "
"alias now, but to connect to the server you will need to "
"install them and then restart your system."
":#1:^#6\$00"
};