Merge lp:~brian.curtin/ubuntuone-client/930398-windows-is_root into lp:ubuntuone-client
| Status: | Merged |
|---|---|
| Approved by: | dobey on 2012-03-21 |
| Approved revision: | 1204 |
| Merged at revision: | 1214 |
| Proposed branch: | lp:~brian.curtin/ubuntuone-client/930398-windows-is_root |
| Merge into: | lp:ubuntuone-client |
| Diff against target: |
50 lines (+14/-2) 2 files modified
tests/platform/windows/test_os_helper.py (+8/-0) ubuntuone/platform/windows/os_helper.py (+6/-2) |
| To merge this branch: | bzr merge lp:~brian.curtin/ubuntuone-client/930398-windows-is_root |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| dobey (community) | Approve on 2012-03-21 | ||
| Roberto Alsina (community) | 2012-03-06 | Approve on 2012-03-19 | |
|
Review via email:
|
|||
Commit Message
- Loosen the is_root check on Windows to allow Windows XP users, who commonly run with Administrator rights, to start U1 properly. (LP: #930398).
Description of the Change
When running on XP, which is almost always run from an Administrator account, always return False on is_root. On versions after XP, i.e., the versions 6.0 and greater (Vista/7), return the real status of whether or not the user is an Administrator.
This adds a test for the XP behavior, mocking platform.version() to produce an XP version string.
| Brian Curtin (brian.curtin) wrote : | # |
| Roberto Alsina (ralsina) wrote : | # |
Were all the cases of users reporting this on XP? If yes, then it's a +1 from me.
| Brian Curtin (brian.curtin) wrote : | # |
Last I heard, "most" of them were XP but a few were supposedly Win7. However, even if some are Win7, they would have to be explicitly running the app as admin in order for this to occur. It runs fine on my box until I start up a cmd with "Run as administrator", which we talked about before should not be allowed anyway.
I've tested this on my Win7 box and an XP VM and both behave properly. XP starts up fine, Win7 starts up fine, and Win7 explicitly running ubuntuone-
| Roberto Alsina (ralsina) wrote : | # |
Ok, let's merge it and then if users complain we give up and just return False.


While working on the installer, I've verified that this branch works on XP.