This question suggests it is doable - Script Running in Background GPIO.cleanup() on shutdown?
In a desktop environment with another process displaying its window, is it possible for a background process to always be fed the GPIO inputs ? Hoping to avoid the transparent window trick.