RSwitch icon indicating copy to clipboard operation
RSwitch copied to clipboard

version selection not working from non-admin account

Open julou opened this issue 4 years ago • 3 comments

Hi,

When I use the menu from the menubar icon to select the other version of R (from my regular user account), I get an error that the symlink can’t be deleted and that the new one can be created… I suspect that this works fine from accounts which have admin rights and that the problem is that I’m using a regular account. Is that the case? can you think of something else?

Thank you very much. Best, Thomas

julou avatar Mar 20 '20 16:03 julou

image

sorry I didn't manage to copy text from the Notification Center…

julou avatar Mar 20 '20 16:03 julou

just updated to 1.7.0 but the same issue persists :( Would it be possible to ask for credentials when version selection is done from an account which doesn't have permission to write files in the R install dir.

julou avatar Jun 02 '20 08:06 julou

(making a note for myself)

potentially diverge the code into two bits one that uses system exec and ln via https://github.com/sveinbjornt/STPrivilegedTask and keep the other one (pure macOS code).

alternative is to just switch both to use the exec to ln like the fortcoming update to the command-line switcher has.

hrbrmstr avatar Jun 02 '20 14:06 hrbrmstr