incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119272] user directory file size grows to 160mb due to bundled extensions
Date Wed, 13 Jun 2012 16:13:43 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119272

--- Comment #11 from Andre <af@a-w-f.de> ---
One technical part of installing extensions system wide is the following code
snippet.  It starts unopkg.exe with elevated access rights:

HINSTANCE nResult (ShellExecute(
    NULL,
    "runas",
    "<office-path>\\program\\unopkg.exe",
    "gui",
    "<office-path>\\program",
    SW_SHOW));

For operating systems other than Windows we will need other solutions.

But the main problem is how to convince the user/admin to type in her password.
 Just to recap, here is how the installation process could work with shared
extensions:

1. Admin installs office (a user without admin rights can not elevate his
access rights high enough to install anything).  During the installation she is
asked for her password to allow the installer to write into system directories
(c:\Program Files or /usr/bin etc).  It is operating system dependent of who
does the asking, on Windows it is our installer, on Linux the package
installer.

2. Office is started for the first time.  Only at this stage we can install
extensions (no installer on Mac, legal restrictions).  In order to install them
shared for all users we need elevated access rights a second time. 
Inconvenient but better then user install because of $TITLE.

3. Now the new part.  Initiate the shared installation somewhere in the desktop
module, where the user installation is started today.  Show a dialog that tells
the user that we are about to ask for his password, again, in order to install
the extensions, and save his disk space.  On his OK make a call like the one
above which will result in the desktop code executed in another process with
elevated rights.  Install the extensions.

4. Everybody is happy.

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

Mime
View raw message