In my opinion, the place to put the options "Minimize to tray" and "close to tray" isn't context menu, but preferences.
I had it in Preferences in NixNote 1.x, but people kept shooting themselves in the foot. They would say "minimize to tray" an "start minimized" but they would be running a window manager that didn't support the tray icon. When they did that the program would start and essentially vanish causing confusion. This way, they can't cause this problem if they can't see the tray icon.
Until I can find a better way around it, this is the safest way to handle it.
Can you show the options only if window manager supports tray icon?
There is a call to ask the window manager if it supports tray icons, but not every window manager reports that it is supported correctly. For example, at one point it was saying that Unity supported the tray icon, but for some reason the tray icon wouldn't appear (although in later versions it was corrected by Ubuntu).
How about this, I add a command line option to override it in case people get into trouble. I can then move it to the preferences dialog. Acceptable?
I guess it is. Best regards.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.