[Libreoffice-bugs] [Bug 139233] macOS : no (not-ugly) way to set global config

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 29 11:23:32 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=139233

--- Comment #5 from François <daitheflu at free.fr> ---
(In reply to Tor Lillqvist from comment #2)
> 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.

Of course it does. You have to bypass it.


> 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?

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).


> 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.)

Not sure what you mean here, but we have :

  - For Linux : Freedesktop's XDG Base Directory Specification
https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html.
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201229/58a93b32/attachment.htm>


More information about the Libreoffice-bugs mailing list