Skip to content

Commit

Permalink
Correct bundle path for Auto Update feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tuyenvm committed Aug 27, 2019
1 parent 84462f4 commit ba44460
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Sources/OpenKey/linux/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# OpenKey
### Open source Vietnamese Input App for Linux
Coming soon
Coming soon.
Take a look at: [https://www.youtube.com/watch?v=NjpirdDo-nY](https://www.youtube.com/watch?v=NjpirdDo-nY)
2 changes: 1 addition & 1 deletion Sources/OpenKey/macOS/ModernKey/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleShortVersionString</key>
<string>1.3.1</string>
<key>CFBundleVersion</key>
<string>28</string>
<string>29</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
5 changes: 2 additions & 3 deletions Sources/OpenKey/macOS/ModernKey/OpenKeyManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ +(NSString*)getApplicationSupportFolder {
}

+(NSString*)getUpdateBundlePath {
NSFileManager *filemgr = [[NSFileManager alloc] init];
NSString *currentpath = [filemgr currentDirectoryPath];
return [NSString stringWithFormat:@"%@/OpenKey.app/Contents/Library/LoginItems/OpenKeyUpdate.app", currentpath];
NSString *currentpath = [[NSBundle mainBundle] bundlePath];
return [NSString stringWithFormat:@"%@/Contents/Library/LoginItems/OpenKeyUpdate.app", currentpath];
}
@end

0 comments on commit ba44460

Please sign in to comment.