hetima / simbl

Automatically exported from code.google.com/p/simbl
2 stars 1 forks source link

Installing SIMBL 0.9.7 package silently causes SIMBL agent to start under wrong agent #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Uninstall SIMBL and stop SIMBL agent.
2. Install SIMBL 0.9.7 package from terminal like "sudo installer -pkg 
SIMBL-0.9.7.pkg -target /"

What is the expected output? What do you see instead?
SIMBL Agent should be started as the current user, but instead it is started as 
root, so it won't 
work as expected.

What version of the product are you using? On what operating system?
0.9.7, OSX 1.6

Please provide any additional information below.

The installer command (/usr/sbin/installer) is needed to install a pkg silently 
(unattended). The 
command has to be run via sudo because the pkg requires admin rights (if you 
try to run it 
without sudo you will get "installer: This package requires authentication to 
install."). 

However, this means that the postflight script of the pkg will be executed with 
$USER = root, 
which means the SIMBL agent will be loaded as root. 

It may be possible to pass a command line parameter to the postflight script 
when running the 
installer command, and use this parameter instead of $USER when loading the 
SIMBL agent.

Original issue reported on code.google.com by delfin.r...@gmail.com on 26 Feb 2010 at 3:42

GoogleCodeExporter commented 9 years ago
Sorry, the title of the issue has a typo, last word should be user, not agent.

Original comment by delfin.r...@gmail.com on 26 Feb 2010 at 3:43

GoogleCodeExporter commented 9 years ago
Yes, I could see this being a problem. There is a SUDO_USER environment 
variable that could be used, but I'm 
not sure about the correct solution.

Original comment by ms...@gmail.com on 16 Mar 2010 at 5:58

GoogleCodeExporter commented 9 years ago
FYI, I also got the same experience running the GUI installer as admin. 
However, my
normal account is not an admin account.

To get the agent running under the correct uid (that of my normal account), I 
had to
install from my normal account, authenticating with admin account.

SIMBL version 0.9.7
Mac OS version 10.6.3

Original comment by hal.w...@gmail.com on 6 Apr 2010 at 1:07

GoogleCodeExporter commented 9 years ago
The fix to the script has been committed. It will be part of 0.9.8.

Original comment by ms...@gmail.com on 11 Apr 2010 at 5:23

GoogleCodeExporter commented 9 years ago

Original comment by ms...@gmail.com on 12 Oct 2010 at 5:43