[KDE/Mac] [Interest] QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) on OSX

René J.V. Bertin rjvbertin at gmail.com
Wed Jan 28 19:41:19 UTC 2015


On Tuesday January 27 2015 18:39:27 Harri Pasanen wrote:
> returns "/Library/Application Support/appname"
> which is not user writable.
> 
> Seems like a bug, but perhaps this is intentional?

According to qtdiag from my MacPorts qt5-mac-devel (5.4.0) install, with Jeremy Whiting's QSP patch:

Standard paths [*...* denote writable entry]:
  DesktopLocation: "Desktop" */Users/bertin/Desktop*
  DocumentsLocation: "Documents" */Users/bertin/Documents*
  FontsLocation: "Fonts" */System/Library/Fonts*
  ApplicationsLocation: "Applications" */Applications*
  MusicLocation: "Music" */Users/bertin/Music*
  MoviesLocation: "Movies" */Users/bertin/Movies*
  PicturesLocation: "Pictures" */Users/bertin/Pictures*
  TempLocation: "TemporaryItems" */var/folders/j1/1439ppj08xj8h6006s6drbq00000gs/T*
  HomeLocation: "Home" */Users/bertin*
  DataLocation: "Application Support" */Users/bertin/Library/Application Support/QtProject/qtdiag* /Library/Application Support/QtProject/qtdiag /opt/local/share/QtProject/qtdiag /opt/local/libexec/qt5/bin/
  CacheLocation: "Caches" */Users/bertin/Library/Caches/QtProject/qtdiag* /Library/Caches/QtProject/qtdiag
  GenericDataLocation: "Application Support" */Users/bertin/Library/Application Support* /opt/local/share /Library/Application Support
  RuntimeLocation: "Application Support" */Users/bertin/Library/Application Support*
  ConfigLocation: "Preferences" */Users/bertin/Library/Preferences* /opt/local/config
  DownloadLocation: "Documents" */Users/bertin/Documents*
  GenericCacheLocation: "Caches" */Users/bertin/Library/Caches* /Library/Caches
  GenericConfigLocation: "Preferences" */Users/bertin/Library/Preferences* /opt/local/config

I see a number of writable locations in there that shouldn't be considered writable (/System/Library/Fonts ...) but *not* /Library/Application\ Support .

R.


More information about the kde-mac mailing list