Как обнаружить файлы, связанные с приложением на Mac

StackOverflow https://stackoverflow.com/questions/5029410

  •  14-11-2019
  •  | 
  •  

Вопрос

Мне интересно, как приложение, как Appzapper, может обнаружить файлы, связанные с приложением?

Все идеи приветствуются.

Спасибо за вашу помощь,

С уважением,

Это было полезно?

Решение

By looking into the standard locations that usually are used by applications to store preferences (like Library/Preferences/ , Library/Caches, etc., both in your home directory ~/ and under / ) I couldn´t find any file or folder that isn´t using either the applications name (eg. ~/Library/Application Support/Firefox) or it´s bundle identifier (eg. ~/Library/Preferences/org.mozilla.firefox.plist) in its name; so I guess they´re just using that.

In the case of AppZapper you can go ahead and try for any (not currently running) Application to rename the ~/Library/Application Support/AppName folder for example to ~/Library/Application Support/111AppName - AppZapper doesn´t find it anymore. If you change it to ~/Library/Application Support/AppName111 it shows up as a related file.

Out of this you can conclude that there isn´t any magical linkage between a folder full of preferences and it´s associated application that AppZapper is reading out, it´s merely checking for folders starting with the Application´s Name.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top