OS X上/Library/Application Support/的预期用途 [英] The intended usage of /Library/Application Support/ on OS X

查看:136
本文介绍了OS X上/Library/Application Support/的预期用途的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的理解是,应用程序应使用系统范围的应用程序支持文件夹(即/Library/Application Support/而不是〜/Library/Application Support/)来存储计算机上所有用户共享的文件. 但是,令我感到困惑的是普通用户没有写入权限.假设搞乱文件权限不是正确的方法,那么这种文件夹的用途是什么?

My understanding is that the system-wide application support folder (i.e. /Library/Application Support/ as opposed to ~/Library/Application Support/ ) should be used by applications for storing files that are shared by all users on the machine. What confuses me, however, is that the regular user does not have writing permission into it. Assuming that messing around with file permissions is not the correct way to go, what is then the usage of such a folder?

我已经签出了使用该文件夹(VirtualBox)的应用程序,它似乎创建了自己的子文件夹,并且仅在安装过程中(当管理员凭据处于活动状态时)写入了该子文件夹.

I have checked out an application that uses this folder (VirtualBox) and it seems that it creates its own subfolder and writes onto it during installation only (when admin credentials are active).

最初,我认为/Library/Application Support/在正常使用过程中被应用程序动态使用,但是我开始怀疑自己错了.此文件夹很少写入(可能只有一次),并且通常用于读取.

Initially I thought /Library/Application Support/ was used very dynamically by applications during normal usage, but I am starting to suspect I was wrong. This folder is very rarely written into (possibly just once) and is mostly used to read from.

我正确吗?如果是这样,建议在哪里写入经常读取和写入的用户共享应用程序数据?

Am I correct? If so, where is the recommended place to write user-shared application data that is frequently read and written?

推荐答案

所有用户"还暗含超级用户权限.

'All Users' also imply superuser permission.

我认为[/Library/Application Support/]最适合特权帮助工具

我正确吗?如果是这样,建议在哪里写入经常读取和写入的用户共享应用程序数据?

Am I correct? If so, where is the recommended place to write user-shared application data that is frequently read and written?

为此,有[/Users/Shared/Library/Application Support].

这篇关于OS X上/Library/Application Support/的预期用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆