I moved the code down a few blocks, such that we only test access to /dev/kvm if the "Enable kernel / hardware acceleration" checkbox is selected. This limits our scope correctly.
I also use os.access() to test permissions, rather than open(). This is much cleaner.
Updated patch.
I moved the code down a few blocks, such that we only test access to /dev/kvm if the "Enable kernel / hardware acceleration" checkbox is selected. This limits our scope correctly.
I also use os.access() to test permissions, rather than open(). This is much cleaner.
:-Dustin