I have C# code in .NET 3.5 that sets the desktop background in Windows Vista/7. I would like to change my code to be cross-platform Windows/Mac/Linux by tweaking it so that it can run through Mono. The only Interop call in my code is the one to set the wallpaper.
I understand that each platform will require a different method/script for this to work; my plan is to check OS & version and run the appropriate code as needed. So far I've found the following non-mono resources which may help:
- (Mac/Python) How can I programmatically change the background in Mac OS X?
- (Linux/C++) Changing wallpaper on Linux programmatically
- (Linux/Python) How can I change my desktop background with python?
Several of these have answers which appear to include scripts which maybe could be executed using a call to the shell/command line in each environment through code?
How can I change the desktop background using mono in Linux and Mac environments?