Asepsis--originally a feature of TotalFinder--controls the creation of .DS_Store files by redirecting their creation to a special folder. Why is .DS_Store a problem? Well, it is not really a problem for most Mac users because .DS_Store files are normally hidden in Finder. But I'm a developer and I run Finder with TotalFinder and I have enabled display of hidden files. Also I run a lot of command-line tools via terminal. The problem is that sometimes .DS_Store files get into a way. I hate when my clean new folders get polluted by those small tiny files holding unimportant garbage. I hate when I zip a folder using some unix command and it includes .DS_Store files in the archive. I hate when I visit a network volume and that pollutes its content with those nasty files. To put it simply I don't want my geeky Windows friends to laugh at me because this makes me look incompetent. That is why I decided to solve this for myself and I'm sharing my solution with other Mac geeks out there to help them protect their egos :-) Why is .DS_Store a problem? Asepsis does .DS_Store redirection. How does it work technically? Apple implemented a private system framework DesktopServicesPriv which is responsible for creating and manipulating .DS_Store files. This framework is used mainly by Finder, but there are also other system apps which link against it and may use it (yes mdworker I'm looking at you!). DesktopServicesPriv uses standard libc calls to manipulate .DS_Store files. At core Asepsis provides a dynamic library DesktopServicesPrivWrapper which gets loaded into every process linking against DesktopServicesPriv.framework. It interposes some libc calls used by DesktopServicesPriv to access .DS_Store files. Interposed functions detect paths talking about .DS_Store files and redirect them into a special prefix folder. This seems to be transparent to DesktopServicesPriv. Additionally Asepsis implements a system-wide daemon asepsisd whose purpose is to monitor system-wide folder renames (or deletes) and mirror those operations in the prefix folder. This is probably the best we can do. This way you don't lose your settings after renaming folders because rename is also executed on folder structure in the prefix directory. The prefix folder is /usr/local/.dscage DesktopServicesPrivWrapper - a proxy library for interposing file manipulation calls in DesktopServicesPriv asepsisd - a system-wide daemon for mirroring folder renames and deletes in the prefix folder asepsisctl - a command-line utility for controlling Asepsis operation
24小时热文
刚刚被浏览过的文章
398363次阅读
336557次阅读
261371次阅读
236919次阅读
214328次阅读
随机显示站内文章
37166次阅读
11806次阅读
47302次阅读
软件下载频道
- Apple
- FTP 工具
- GIF 生成
- PDF 文档操作
- SetApp
- Today Widget
- Touch Bar
- 下载工具
- 书签收集
- 书籍管理
- 二维码工具
- 云同步
- 交互设计
- 任务管理
- 位置定位
- 信息管理
- 创意工具
- 剪切板
- 办公套件
- 动画设计
- 包裹追踪
- 医疗工具
- 单位转换
- 双11特惠
- 反病毒
- 团队协作
- 图标生成
- 图标管理
- 图片处理
- 图片拼接
- 图片标注
- 图片浏览
- 壁纸管理
- 多媒体工具
- 天文研究
- 天气预报
- 字体管理
- 字幕工具
- 学习卡
- 密匙管理
- 密码管理
- 屏幕保护
- 屏幕取色
- 屏幕录制
- 屏幕截图
- 屏幕解锁
- 工程管理
- 平面设计
- 开发软件
- 影片管理
- 影音播放
- 快速录音
- 思维导图
- 打印工具
- 批量重命名
- 效率工具
- 数据传输
- 数据备份
- 数据恢复
- 文件上传
- 文件压缩
- 文件搜索
- 文件比对
- 文件清理
- 文件管理
- 文本格式转换
- 文档演示
- 文档管理
- 文档编辑
- 文档识别
- 文档阅读
- 新闻订阅
- 日历工具
- 时间追踪
- 格式转换
- 歌词获取
- 测绘工具
- 浏览器
- 浏览器插件
- 游戏
- 热键工具
- 版本控制
- 理财工具
- 电量管理
- 界面定制
- 硬件增强
- 磁盘工具
- 磁盘数据拷贝
- 社交客户端
- 程序安装
- 窗口管理
- 笔记管理
- 系统优化
- 系统增强
- 系统监控
- 纯写作
- 网络工具
- 翻译软件
- 聊天工具
- 联系人管理
- 虚拟机
- 虚拟现实
- 表情包
- 视频会议
- 视频同步播放
- 视频监控
- 视频编辑
- 计算器
- 语音识别
- 软件卸载
- 输入法
- 运动信息
- 远程控制
- 邮件客户端
- 闹铃提醒
- 防休眠
- 防干扰
- 音乐制作
- 音频制作