OS X系统首选项应用程序不希望保存服务设置中的任何更改(OS X System Preferences app don't want to save any changes in Serv

编程入门 行业动态 更新时间:2024-10-11 09:29:49
OS X系统首选项应用程序不希望保存服务设置中的任何更改(OS X System Preferences app don't want to save any changes in Service settings)

我正在打开系统偏好设置应用>>键盘>>快捷方式>>服务,并尝试更改一些选项 - 设置或取消设置,没有人启用或禁用。 更重要的是,在我退出Preferences应用程序后,所有选项都恢复为默认值

我尝试过“磁盘工具”提供的“修复权限”选项,但它没有帮助

我正在运行OS X 10.9.1,但是我记得,这也发生在OS X 10.8.x上,但我放弃了那段时间

我问过我的朋友,他们也运行OS X 10.9.1,他们没有这个问题,所以这是特定的。 有任何想法吗?

UPD:来自Guest用户或具有Admin权限的其他帐户都正常运行

I'm opening System Preferences app >> Keyboard >> Shortcuts >> Services, and trying to change some options - to set or unset, and no one is enabling or disabling. Even more, after I quit the Preferences app all the options are restoring to their default values

I've tried 'fix permission' option provided by Disk Utility, but it didn't helped

I'm running OS X 10.9.1, but as I remember, this also happened on OS X 10.8.x, but I gave up that time

I've asked my friends, which also run OS X 10.9.1, and they don't have this problem, so it's something specific. Any ideas?

UPD: From Guest user, or another account with Admin privileges all is working correctly

最满意答案

我发现问题以某种方式与pbs.plist文件相关联,其中必须保存更改

所以这对我有所帮助:

作为嘉宾进入 添加一些服务更改 将文件/Users/Guest/Library/Preferences/pbs.plist复制到我的〜/ Library / Preferences文件夹 使用chown设置正确的权限

或者您可以将此代码保存到〜/ Library / Preferences / pbs.plist

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>NSServicesStatus</key> <dict/> </dict> </plist>

然后将其转换为二进制格式

plutil -convert binary1 ~/Library/Preferences/pbs.plist

另一个解决方案可以是运行此命令,但我不确定,因为现在一切正常,我无法检查它

/System/Library/CoreServices/pbs update

I found that problem is somehow associated with pbs.plist file, where the changes must be saved

So this helped me:

enter as a guest add some changes to the Services copy file /Users/Guest/Library/Preferences/pbs.plist to my ~/Library/Preferences folder set correct permissions using chown

Or you can just save this code to your ~/Library/Preferences/pbs.plist

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>NSServicesStatus</key> <dict/> </dict> </plist>

And then convert it to binary format

plutil -convert binary1 ~/Library/Preferences/pbs.plist

Another solution can be to run this command, but I'm not sure, because now all is working, and I can't check it

/System/Library/CoreServices/pbs update

更多推荐

本文发布于:2023-08-02 19:35:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1379777.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   首选   系统   System   OS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!