1. Apply the above patch to the source file in your system. On mine, it's at /usr/share/pyshared/JobService/policy.py. If you are doing the patch manually, notice that it's 2 lines that need changing, an import and the use of the import.
2. Reinstall jobs-admin with: sudo aptitude reinstall jobs-admin. This is to ensure that any compiled Python files notice the new code. Not terribly sure if this is necessary.
3. D-BUS needs to be restarted to use the new code, which is not a great idea in a session, so restart your computer instead and the changes should now be active.
Solution is as follows IMO:
1. Apply the above patch to the source file in your system. On mine, it's at /usr/share/ pyshared/ JobService/ policy. py. If you are doing the patch manually, notice that it's 2 lines that need changing, an import and the use of the import.
2. Reinstall jobs-admin with: sudo aptitude reinstall jobs-admin. This is to ensure that any compiled Python files notice the new code. Not terribly sure if this is necessary.
3. D-BUS needs to be restarted to use the new code, which is not a great idea in a session, so restart your computer instead and the changes should now be active.