[ubuntu-mono] [Bug 685309] Re: Hotkeys don't work with indicator-application

Tuomas Launiainen 685309 at bugs.launchpad.net
Fri Nov 25 12:38:02 UTC 2011


Possible workaround: create python scripts that do the desired
operations, and add global shortcuts to them. Examples:

newnote.py:
#!/usr/bin/env python
import dbus, gobject, dbus.glib
tomboy = dbus.Interface(dbus.SessionBus().get_object("org.gnome.Tomboy", "/org/gnome/Tomboy/RemoteControl"), "org.gnome.Tomboy.RemoteControl")
tomboy.DisplayNote(tomboy.CreateNote())

showsearch.py:
#!/usr/bin/env python
import dbus, gobject, dbus.glib
tomboy = dbus.Interface(dbus.SessionBus().get_object("org.gnome.Tomboy", "/org/gnome/Tomboy/RemoteControl"), "org.gnome.Tomboy.RemoteControl")
tomboy.DisplaySearch()

showstartnote.py:
#!/usr/bin/env python
import dbus, gobject, dbus.glib
tomboy = dbus.Interface(dbus.SessionBus().get_object("org.gnome.Tomboy", "/org/gnome/Tomboy/RemoteControl"), "org.gnome.Tomboy.RemoteControl")
tomboy.DisplayNote(tomboy.FindStartHereNote())

I made these with the help of <http://arstechnica.com/open-
source/news/2007/09/using-the-tomboy-d-bus-interface.ars>.

-- 
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to tomboy in Ubuntu.
https://bugs.launchpad.net/bugs/685309

Title:
  Hotkeys don't work with indicator-application

Status in “tomboy” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: tomboy

  Steps to reproduce:
  0. (optional) Open Tomboy preferences, choose tab "Hotkeys" and configure some hotkeys, e.g. <Alt>F12 to "Show notes menu", and close the preference window.
  1. Press predefined key combinations.

  Expected behaviour:
  The defined behaviour is executed: the "Start here" note is opened, the "Search all notes" window, or Tomboy's indicator-application menu, just like the panel-applet menu in the original/upstream version of Tomboy, or like pressing <Super>S opens the Shutdown menu.

  Observed behaviour:
  Nothing happens.

  This is always reproducible. (Using Ubuntu 10.10 "Maverick Meerkat")

  If someone could take the time to fix this, I'm sure I would not be
  the only one who would be very grateful. This really makes a big
  difference between the upstream version of Tomboy and the one in
  Ubuntu.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomboy/+bug/685309/+subscriptions



More information about the Ubuntu-mono mailing list