[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44548] pkg install defaults to global in Micr
From: |
Oliver Heimlich |
Subject: |
[Octave-bug-tracker] [bug #44548] pkg install defaults to global in Microsoft Windows |
Date: |
Mon, 16 Mar 2015 19:22:23 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.5.0 |
Follow-up Comment #3, bug #44548 (project octave):
Checking “properly” for permissions is a hard thing to do, because you
would have to implement the required system calls and consider different file
systems and possibly network shares. The creation of a temporary file is a
reliable method for testing permissions.
If the user does not provide -global or -local, the default should depend on
the file permissions (in Microsoft Windows only!).
Then, the user may install GNU Octave into a public location (e. g.
%ProgramFiles%), where pkg install would default to -local (unless run as
administrator). And when installed in a writable place (e. g. %USERPROFILE%)
it would default to -global and packages would be installed into the program
folder.
Another solution would be to use -local as default in Microsoft Windows,
because this would be simple and work in either case.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44548>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/