[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Location for user installed plugin libraries and icons





On 5/6/21 7:59 am, The Wanderer wrote:
On 2021-06-04 at 17:43, Jon Gough wrote:

On 9/5/21 5:40 pm, Andrey Rahmatullin wrote:

On Sun, May 09, 2021 at 04:41:13PM +1000, Jon Gough wrote:
I now know what path I need to follow, i.e. have a plugin manager
that uses the platform installation process so that the uninstall
process will work and the packages and objects will be tracked.
If this means calling apt from a plugin manager then it's probably
not the best idea.
Not quite. The plugin manager needs to keep track of what it has
installed and where, then during the uninstall process it can be
called, if needed, to perform the cleanup as it would if the main
program were calling it to uninstall one or more plugins.
I'm... fairly sure that the uninstall process must not touch the
contents of user directories, not even indirectly by invoking an
external program (such as this plugin manager) which would do so on its
behalf. If I'm wrong, someone may correct me, but I would be surprised
if it were that easy to bypass this constraint on package design.

In most instances the main application is installed on devices that
have only one user, i.e. phone, tablet, etc.. Even when on a multi
user device, i.e. windows, the device is still only used by one
account.
How can you possibly be sure about that?

(Also, if someone is installing packages on a tablet or smartphone via
apt, they are very likely sufficiently expert to have some idea of how
to clean up after the uninstall as needed; if there's a device in those
categories which uses apt for native install mechanisms, rather than as
an aftermarket extra tool, I'm not aware of it.)
They use the 'Play Store' app on an android phone so no nothing of apt. They probably use 'Software Manager' or 'Synaptic Package Manager' on ubuntu, they go nowhere near a command prompt so never see what is happening.  I am thinking of the naive user who finds the app installs it, adds plugins, then, finds another app that more closely meets their requirement (or just don't use the app anymore) and unistalls it and installs a different app. How is this user supposed to know to clean up if they have never been asked at the uninstall stage?

If the uninstall process is run for the main application any other
account using the machine will have issues if they expect the main
application to still be there. So, in this case uninstalling plugins
during the main uninstall process would not be a major issue. The
config files/data would not be uninstalled/removed by this process.
And what if the user is uninstalling, but intends to install again
They get asked if they want to do a complete uninstall of all downloaded plugins, or leave them
later (maybe even right away)? To have to re-download and reinstall the
plugins could easily be a significant irritation, at the least.
Personally, I would probably see the plugins as being part of the
program configuration; certainly I do so with e.g. the Firefox
extensions I use.

I genuinely do not see what insisting on uninstalling plugins at the
same time as the main program, for all user accounts, provides as a
benefit. The only maybe benefit I've seen suggested is cleaning up to
free disk space, and that seems to me to be so obviously heavily
outweighed by the other considerations that it should clearly not be the
deciding priority.
It should be a user choice not a developer decision. However, offering the capability is a developer decision. I am just trying to be aware that most users are not developers or deeply involved/interested in the internals of what is going on and therefore trying to be helpful and not cause premature 'obsolescence' of the devices due them being full of hidden data (.config etc. directories and files are hidden from most causal users).



Reply to: