Comment 3 for bug 1032042

marmuta (marmuta) wrote :

I've been thinking to drop the g_application approach and directly create a D-Bus interface instead. This would give us more control and doesn't touch obscure GIO functions. It may be more awkward to use from command line, but with instructions it's still manageable.

The interface could look like this:
Show()
Hide()
IsLockedVisible()

With Show() having the same effect as manually showing by menu, status icon, floating icon or second instance start, i.e. locking Onboard visible and stopping auto-show until Onboard is hidden again.

IsLockedVisible() would specifically check if Onboard was actively shown, not just transiently by auto-show.