<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - macOS : no (not-ugly) way to set global config"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=139233#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - macOS : no (not-ugly) way to set global config"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=139233">bug 139233</a>
from <span class="vcard"><a class="email" href="mailto:daitheflu@free.fr" title="François <daitheflu@free.fr>"> <span class="fn">François</span></a>
</span></b>
<pre>(In reply to Tor Lillqvist from <a href="show_bug.cgi?id=139233#c2">comment #2</a>)
<span class="quote">> Well, adding or editing files inside the app bundle is definitely wrong. If
> that works, it means that the OS apparently doesn't check the integrity of
> an app bundle as well as it should. I would expect and hope that doing
> modifications inside the app bundle would break its digital signature.</span >
Of course it does. You have to bypass it.
<span class="quote">> Anyway, I am not sure why this would be a macOS-only enhancement request.
> Can the required functionality not be achieved on other platforms either by
> just editing files in the user profile?</span >
I tried several things (like putting the file in `$LO_USER_PROFILE/registry/`)
but couldn't get it working. The documentation also doesn't give any hint about
where to put things (which is probably another issue worth a bug report).
<span class="quote">> Ah, but I see, is the problem, that
> you want to do it for all users, perhaps for once who haven't necessarily
> even run LibreOffice yet on a machine, not just yourself? It is quite
> possible that there is no sane way to do that on any platform. (Where with
> "sane" I mean having some place outside the app installation ("app bundle"
> on macOS) for such modifications.)</span >
Not sure what you mean here, but we have :
- For Linux : Freedesktop's XDG Base Directory Specification
<a href="https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html">https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html</a>.
AFAIK, almost all programming languages and GUI frameworks (QT, GTK...) provide
APIs or libraries to deal with this. Also, `$XDG_CONFIG_DIRS` is supposed to
have a `/etc/<whatever>` config dir which is common to all users.
- For macOS : two main APIs are provided : `CFPreferences` and
`NSUserDefaults`. "All users" settings generally go in `/Library/Preferences`
while specific user settings generally go in
`/Users/<user>/Library/Preferences`. Data used by the app are now stored in
`/Users/<user>/Containers/<app_bundle_id>/`.
- For Windows : I think apps are supposed to use the `%ALLUSERSPROFILE%` for
settings common to all users and `%APPDATA%` for specific user settings.
So yes, there are definitely sane places outside the app bundle for such
modifications :)
It would be a real improvement if LibreOffice could conform to the different
OSes specifications.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>