-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions on updating defaults
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -99,6 +99,18 @@ | |
* Source/GSPrivate.h: declare new functions. | ||
* Source/NSUserDefaults.m: use bundle identifier rather than process | ||
name where it is available. | ||
WARNING ... this brings behavior in line with MacOS but it means that | ||
existing defaults databases will not be loaded. If your app is called | ||
MyApp and its bundle identifier (stored as the CFBundleIdentifier | ||
value in the Info-gnustep.plist or Info.plist file in your app) is | ||
mydomain.MyApp then you can copy the information by saving the old | ||
information to a file, editing the domain name in the file, and then | ||
importing from that file using the 'defaults' command. | ||
Or use sed to do the editing in a pipeline like this: | ||
defaults read MyApp |\ | ||
sed -e 's/^MyApp /mydomain.MyApp/' |\ | ||
defaults write | ||
Then remove the old information with 'defaults delete MyApp'. | ||
|
||
2024-11-12 Richard Frith-Macdonald <[email protected]> | ||
|
||
|