I'm looking to move one of my C# applications over to Mono for use on the Mac. Currently, I'm trying to figure out how to make it a sort of "background" process, but still have the ability to have GUI elements (I believe this rules out mono-service
).
The ultimate goal is this:
- Put a tray icon up by the clock for the majority of interactions.
- Remove the dock icon that typically comes with a launched application
- Have the application run on startup.
In short, just think of how the Dropbox app works. I want that type of GUI, but with a Mono / Mac app.
I believe this is typically accomplished by setting LSUIElement = 1
in the application bundle's Info.plist. However, I've had no luck with it. I think it may have something to do with the mono
command launching my application from within the app bundle. Once the app launches mono
I'm assuming it doesn't cascade to further application launches. That is a pure guess, though.
Does anyone have any ideas on this? Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…