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

            Bug ID: 153952
           Summary: Default template cannot be modified (by non-root
                    user?)
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

I'm running LO as a non-root/non-privileged user - as one does on a typical
operating system.

When I "Manage Templates", choose the Default Template and Edit it - it opens,
but a top blue bar tells me the template is open in Read Only mode, suggesting
I click a button in order to edit the template - even though that's what I said
I want to do. This is already a problem, and doubly so because I'm not told the
_reason_ I can't edit the template; nor was I prevented from doing so in the
Manage Templates dialog.

But the more serious problem is that when I try to save - to overwrite - the
template file, I get:

"Error saving the document Default:
Write Error.
The file could not be written."

this is again twice a problem: First, the write failing, which I suspect is due
to the fact that I'm not root, so I can't overwrite that file, and second, that
I'm not told what actually happened, just a vague message about an error.

The immediate thing to fix is to clarify to the user why they're experiencing
this, i.e. some message saying "The default template can only be edited by a
system administrator / root user" or something along those lines. Alternative,
Edit must not be available on the context menu of nonroot-user-edit

But - this would not be satisfactory, since a user _does_ need to be able to
edit their default document template. So one of the following needs to happen:

1. The default template is duplicated into a user's account when LO is first
started.
2. The default template is duplicated into a user's account when the user first
manages templates.
3. The default template is duplicated into a user's account when the user first
opens it for editing
4. The user is prompted to set their default template to a duplicate of the
system-wide one, to be able to edit it, and must themselves choose whether to
do this.

In any of those cases - once the duplication happens, choosing the default
template should open the user-home-directory-version, not the system-wide
version; and a system-wide default may potentially also start being presented.

5. When trying to save a root-only-editable template, the user will be prompted
to either give up or provide the root password.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to