Hy Luke,I downloaded the 2.91.90 version and looked the patch with my Lucid system with Orca git master version. Now, your patch not examining the Ubuntu release version, so in my Lucid system the script returning I am using Unity. This is only resulting problems if need upgrading oldest Ubuntu releases the gnome-orca package with 3.0 release, because in future possible for example in oldest releases perhaps will be replacing with Firefox 3.6 version to Firefox 4.0 version if Firefox 3.6 Mozilla support is expire. This wrong information returning is happening because I using default Ubuntu desktop session my Lucid system, and os.environ returning gnome this situation. Possible you examine lsb_release command output result and handle this error? Thank you the translation mark the messages, this messages are need translating with Launchpad?
I sending a test script with I handle hopefuly this error, and examine the script running Ubuntu or not Ubuntu releases, if running Ubuntu release what the version number, etc. Need sending different desktop environment name for example if the active session name is gnome (not Unity string need sending), if the release is not 11.04 or higher (8.04, 9.10, 10.04, and 10.10). The script is hopefuly detecting right if the distribution id is not Ubuntu (for example Debian), this situation sending only the DESKTOP_SESSION environment value this situation.
Anybody testing the script returning right desktop environment with various distributions or various Ubuntu versions? If I change direct the version number variable with 11.04 or 11.10, I get right result (Unity). Othervise, I get right gnome desktop environment.
Attila
Attachment:
desktop_environment.py
Description: Text Data