joshf/emesene — comment on commit a29091591685fe022f16f1aa229ec81a54791fde
File: emesene/gui/gtkui/Preferences.py line 559
By joshf:

```
if sys.platform == 'darwin':
self.append_markup(''+_('OS X Integration:')+'')
self.session.config.get_or_set('b_show_dock_icon', True)
button = self.append_check(_('Show dock icon (requires restart of emesene)'),
'session.config.b_show_dock_icon')
button.connect("toggled", self.do_hideshow)

def do_hideshow(self, widget):
if widget.get_active():
subprocess.call('defaults write /Applications/emesene.app/Contents/Info LSUIElement -bool false', shell=True)
else:
subprocess.call('defaults write /Applications/emesene.app/Contents/Info LSUIElement -bool true', shell=True)
```

Is that right?