On Thu, Dec 18, 2008 at 9:18 PM, Zero3 <zero3 at zerosplayground.dk> wrote: > Matthew Toseland skrev: >>> On top of my head: >>> - Cleaner code >>> - Proper detection of FireFox location >>> >> >> We don't already have that? We check the registry etc ... >> > > Atm. we check for FF in > "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App > Paths\firefox.exe" (Used for various things like the "Run" dialog and > loading common .dlls without knowing the full path) instead of the > official "HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\3.0.4 > (da)\Main\PathToExe" (On my system, version and locale string is fetched > from "HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla > Firefox\CurrentVersion"). It's not really wrong as we do it now, but we > really should check the official key and eventually fall back to App > Path (or path to http protocol handler application, or default install dir). > >> >>> - profiles.ini watchdog thingy >>> >> >> I had figured we'd implement this in java and start it when launching the >> browser. Then we solve it for non-Windows as well. Our last report was on >> Debian. >> >> > > Sure thing! I simply figured nobody had the time so I thought I might as > well do what I could. > >>> - Check if node is running before launching FF (and if not, start or >>> inform user in a GUI message box) (and if needed, shutdown node >>> afterwards as well) >>> >> >> Not possible, as we've discussed. >> > > It is not? We should be able to check if a system service is running > even as a low-access user, and if not, at least warn about it (instead > of failing miserably with a "server not found" error in FF). > > I Googled around a bit, and it appears that it is actually possible to > give low-access users access to start and stop a specific service: > http://www.eventlogblog.com/blog/2007/11/setting-service-permissions-wi.html > > We most likely cannot comply with the EULA though: > > "1. GRANT OF LICENSE. Provided that you comply with all terms and [....]
sc.exe , which is included scince windows 2000 can set the permission. use `sc sdset` http://technet.microsoft.com/en-us/library/bb490995.aspx http://msdn.microsoft.com/en-au/library/aa379570(VS.85).aspx
