I have a preference pane installed in /Library/PreferencePanes. I want this preference pane to control an application that is running as root (it's a server). The preference pane bundle is owned by root. However, when I modify the preferences, it saves the results to ~/Library/Preferences. How do I get the results to save to /Library/Preferences instead?
Running a preference pane on Mac as root
466 Views Asked by khatchad At
1
There are 1 best solutions below
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in MACOS
- Error installing Nativescript on Mac M2 Sonoma 14.4.1
- macOS - Most secure way of a GUI SUDO_ASKPASS
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- ZSH function parameters conundrum
- how to make read only file/directory in Mac writable
- macOS BigSur - Unable to run bundled php version or brew php 8
- 9 Digit Addresses in Hexadecimal System in MacOS
- MacOS Bash-Script: while read p and echo
- How to make a range for tail rows on a categorized table in Numbers with JXA scripts?
- Cannot build a basic project with curl on Mac (M2) for Raspberry Pi Pico
- How to recover deleted files from create vite react project
- Can't run built SFML project from Xcode template
- React Native - RealmJS - Linker command failed with exit code 1
- How can I manually add a keyboard shortcut to a Shortcut Action Service directly via the system files, without going through the System Prefs GUI?
Related Questions in PLIST
- ITMS-91053: Missing API declaration - Privacy
- how to install IPA file with itms-services?
- 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID
- AppleScript. Probably unjustified complication of syntax. iTunes play count import from xml
- XCode/Flutter: How do I fix "ExportOptions.plist" is invalid error when trying to export my app?
- React Native Expo: Google analitics - unable to get ios to work properly
- MongoDB via Brew Services "undefined method `plist_startup'"
- Make a login/logout script in mac
- Does PropertyListEncoder no longer support binary property list encoding?
- I want to open the textures in the png file of a game that has plist and ExportJson files, but I couldn't do it
- React Native Build Phase Failing in Xcode15 when writing Info.plist
- Impossible to parse result for await itemProvider.loadItem for URL
- How can I make plist content programatically?
- MacOS Launchd move files plist in Ventura not working
- Generation of the Firebase Android resource file google-services.xml from Assets/GoogleService-Info.plist failed
Related Questions in PREFERENCES
- Variable doesn't seem to change after assigning a number to it
- Is there a way to set the minimum and maximum value of a DataStore Preferences value?
- How to prevent firefox from keep loading new content while scrolling to the page bottom
- Gimp Preferences/Folders shows no script folder
- Save object list in Preferences (.NET MAUI)
- Why is Java's Preferences.exportNode() exporting non-XML characters?
- Xamarin forms Preferences reset when app update
- PreferenceActivity/Settings with custom shared preferences as source
- How to enable and disable Start Recording button in console preference link(WLST Script Recording tab) in Weblogic using wlst and python
- Dotnet ef core linq performance query
- Is it possible to change values in edge://prefs-internals?
- MAUI iOS saving Preferences in Debug build, but not in release build deployed to app store
- Monitoring `defaults read` output and generating corresponding `defaults write` commands in macOS
- Setting up the multiprocessor capabilities of PyCharm
- Java preferences file in gibberish directory
Related Questions in NSPREFERENCEPANE
- PrefPane in 10.15 will not reopen external windows
- Debug System Pref Pane w/10.15 and System Integrity Protection
- NSRequiresAquaSystemAppearance and pref panes
- Best way to Register a Login Item from a Preference Pane?
- Why does my Preference Pane seem to think it's always the wrong architecture?
- Why won't my Swift-backed Preference Pane load?
- Swift on a PreferencePane, with Cocoa Bindings; what am I doing wrong?
- Defining an anchor name within my preference pane
- Using Swift with an OS X Preference Pane plugin
- Can I create an OSX System Preferences pane with Qt
- Preference pane - Add action on button
- Mac/Cocoa - Settings Pane Refresh App
- NSPreferencePane - Change Title of the Window
- In an Xcode4 plugin, how does one add a pane to Xcode's preferences?
- prefpane not giving option to install for single user
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Just with a quick look, it seems you'd need to use CFPreferences instead of NSUserDefaults. Also, you will need to elevate priviledges, which is a pain in the ass to do properly. Here's the guide for it, but Lion changed a lot specifically in authorization services, so there might not be a lot of extra info out there.