Bug 136010 - Cannot disable extensions installed by package manager
Summary: Cannot disable extensions installed by package manager
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
Version:
(earliest affected)
6.4.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-22 09:39 UTC by medmedin2014
Modified: 2020-08-22 21:01 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Cannot disable extensions installed by package manager (64.73 KB, image/png)
2020-08-22 09:39 UTC, medmedin2014
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medmedin2014 2020-08-22 09:39:22 UTC
Created attachment 164552 [details]
Cannot disable extensions installed by package manager

How can I disable (not remove) Libreoffice extensions installed from Pamac like LanguageTool or TextMaths, because in extension manager the disable button is disabled.
I use LanguageTool extension for both english and french with huge locally n-grams data (over 17.5GB) so the extension is expected to always slow down Writer while parsing the content of opened files. That’s why I want to disable it temporarily to have more speed for files that don’t need text verification.
And I don’t have always internet, and even If I have it the fact to always download each time over 200MB to use LanguageTool extension is something fastidious.

Operating System: Manjaro Linux
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Kernel Version: 5.8.0-2-MANJARO
OS Type: 64-bit
Comment 1 Julien Nabet 2020-08-22 11:27:22 UTC
On pc x86-64 with LO Debian test package, I could reproduce this.
I installed "libreoffice-lightproof-en/testing" for example and indeed "Disable" button is disabled.

Rene: Manjaro is based on Arch and I know you're more on Debian but thought you might be interested in this one since I could reproduce this on Debian.
Comment 2 Rene Engelhard 2020-08-22 11:50:38 UTC
then deinstall the package? (or rm -rf the extension if in doubt).

I don't think this is a bug anywhere. 

Extensions installed by packages are supposed to be "deactivated" by deinstalling them. (especially for "bundled" extensions which lie there in the filesystem unpacked.)
Comment 3 Rene Engelhard 2020-08-22 11:56:36 UTC
(and yes, this requrires root rights - but installing that extension package required that too in the first place)
Comment 4 medmedin2014 2020-08-22 18:55:26 UTC
(In reply to Rene Engelhard from comment #2)
> then deinstall the package? (or rm -rf the extension if in doubt).
> 
> I don't think this is a bug anywhere. 
> 
> Extensions installed by packages are supposed to be "deactivated" by
> deinstalling them. (especially for "bundled" extensions which lie there in
> the filesystem unpacked.)

This is really a bug because LibreOffice extension manager should handle deactivation/activation of any kind of installed extension even if they are installed via package manager.
The package manager is only responsible for installing and uninstalling process.

Many people like to disable some extensions temporary and enable them only when needed, especially for extensions with big size like LanguageTool with more 200MB.
Comment 5 medmedin2014 2020-08-22 19:00:43 UTC
(In reply to Rene Engelhard from comment #3)
> (and yes, this requrires root rights - but installing that extension package
> required that too in the first place)

Uninstalling the extension is not the solution, because for a machine with multiple users, if instead of deactivating the extension for current user you remove it via package manager then it will be removed for all other users because it's shared between them.
Comment 6 Rene Engelhard 2020-08-22 19:20:05 UTC
And if that is what the admin of the system wants that's what the admin wants.

Users are not supposed to mess with system-wide (and that's what packages do) installations.

One could imagine some new feature which makes "don't activate this extension while installed", but that would be questionable imho.

And in some cases the admin might want to force something on anyone (and be it config changes which also could be done via extensions). Bypassing what the admin wants is bad.
Comment 7 medmedin2014 2020-08-22 19:36:42 UTC
(In reply to Rene Engelhard from comment #6)
> And if that is what the admin of the system wants that's what the admin
> wants.
> 
> Users are not supposed to mess with system-wide (and that's what packages
> do) installations.
> 
> One could imagine some new feature which makes "don't activate this
> extension while installed", but that would be questionable imho.
> 
> And in some cases the admin might want to force something on anyone (and be
> it config changes which also could be done via extensions). Bypassing what
> the admin wants is bad.

I think you don't differentiate between disable and remove ? or you don't understand what I wrote ?
Btw why are you are so eager to close this report ?

I will explain to you the situation, suppose you have a Linux machine with 3 users (one admin and two normal users), if admin want to disable some extensions installed by package manager, should he remove them totally ? No ! this will remove the extension also for other users !
What the admin want is to disable temporary some extensions for only himself and other users should still have access to extensions.
Comment 8 Rene Engelhard 2020-08-22 20:13:57 UTC
> I think you don't differentiate between disable and remove ? or you don't
> understand what I wrote ?

No, you don't understand what I wrote and security. 

I explicitely wrote

--- snip ---
One could imagine some new feature which makes "don't activate this extension while installed", but that would be questionable imho.
--- snip ---

But then

--- snip ---
And in some cases the admin might want to force something on anyone (and be it config changes which also could be done via extensions). Bypassing what the admin wants is bad.
--- snip ---

remains. If a user can deactivate extensions deploying configuration by the admin this is VERY bad. Be it Macro Security settings or whatever else company-wide configuration.

> Btw why are you are so eager to close this report ?

Exactly because of the above and you don't get the distinction between admin and users which is a *fundamental concept*. Users don't get to mess with system-wide installed stuff. Period.

We are not in Windows here.

> I will explain to you the situation, suppose you have a Linux machine with 3 users (one admin and two normal users),

So 2 users.

> if admin want to disable some extensions installed by package manager, should he remove them totally ? No ! this will remove the extension also for other users !
> What the admin want is to disable temporary some extensions for only himself > and other users should still have access to extensions.

... as shown here. The admin himself has no LO use, no one should run LO as root. So what the admin does always affects users, not only him for LO.


One always can install an extension locally for users (--shared wouldn't probably work either since uninstalling also would require root).
Comment 9 medmedin2014 2020-08-22 20:22:37 UTC
> ... as shown here. The admin himself has no LO use, no one should run LO as
> root. So what the admin does always affects users, not only him for LO.

admin is just a simple user (in this case it's me) who know root password and can use LO as other users without launching it with root privilege. root is just a role that an admin can acquire by specifying root password.
Comment 10 Rene Engelhard 2020-08-22 20:32:34 UTC
.. and packages are installed by root.

root = admin. Whoever can become root or do root commands to do administrative task is irrelevant for this case here. Only relevant is who has the right to manage system-wide stuff: root - the admin.
Comment 11 medmedin2014 2020-08-22 20:43:41 UTC
This kind of bug reviewing is really ...
Quality is not measured by number of closed reports/bugs but by users feedback, and should advance based on interaction with users suggestions and wishlist.
Comment 12 Rene Engelhard 2020-08-22 20:50:34 UTC
For avoidance of doubt: I don't care about bug numbers here or closed bugs numbers.

What I *do* care about is principles and what belongs to the admin and what not.

If the admin decides to install something talk to your admin. Or do administrative tasks yourself. And remove the package. (If your distro packages are not fine-grained enough, one could talk to them.)

But don't try to bypass your admins' decisions by wanting to disable extensions the admin installs system-wide, be it shared or bundled or in a package for whatever reason.
Comment 13 Rene Engelhard 2020-08-22 21:01:18 UTC
Also note that for debugging there's the safe mode.  (--safe-mode in command line.)

Just tried: It also allows ignoring extensions.