Skip to content

Commit

Permalink
Use application name instead of domain as app identifier.
Browse files Browse the repository at this point in the history
To make sure the user do not see the name Nextcloud when the client is branded.

Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed May 15, 2024
1 parent 1b9fbb0 commit bb9cc8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/utility_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

@autoreleasepool {
NSFileManager *fileManager = [NSFileManager defaultManager];
NSString *appIdentifier = QCoreApplication::organizationDomain().toNSString();
NSString const *appIdentifier = QCoreApplication::applicationName().toNSString();
NSString *plistFile = [NSHomeDirectory() stringByAppendingFormat:@"/Library/LaunchAgents/%@.plist", appIdentifier];

if ([fileManager fileExistsAtPath:plistFile]) {
Expand Down Expand Up @@ -187,7 +187,7 @@
@autoreleasepool {
NSFileManager *fileManager = [NSFileManager defaultManager];
NSString *fullPath = QCoreApplication::applicationFilePath().toNSString();
NSString *appIdentifier = QCoreApplication::organizationDomain().toNSString();
NSString *const appIdentifier = QCoreApplication::applicationName().toNSString();
NSString *plistFile = [NSHomeDirectory() stringByAppendingFormat:@"/Library/LaunchAgents/%@.plist", appIdentifier];

// An error might occur in the code below, but we cannot report anything, so we just ignore them.
Expand Down

0 comments on commit bb9cc8b

Please sign in to comment.