GNOME Bugzilla – Bug 689964
The --new-note command raises the search window (if already running) in Mint Debian
Last modified: 2013-01-19 23:02:57 UTC
The --new-note command raises and focuses the main Tomboy search window instead of creating a new note if Tomboy is already running in the background with the search window minimized. If Tomboy isn't running already,a new note is successfully created instead,although with the following warning: tomboy --new-note [INFO 13:13:25.084] Initializing Mono.Addins (Tomboy:6452): GdkPixbuf-WARNING **: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference. In the other case of Tomboy running already,here's the message from the terminal: tomboy --new-note (Tomboy:6447): libtomboy-WARNING **: Binding '<Alt>F11' failed! (Tomboy:6447): libtomboy-WARNING **: Binding '<Alt>F12' failed! [INFO 13:13:07.401] Initializing Mono.Addins [ERROR 13:13:07.750] Tomboy is already running. Exiting... This happens in Linux Mint Debian: Linux mintdebian 3.2.0-2-amd64 Linux Mint Debian Edition wheezy/sid
I thought this had been addressed in another bug, but I cannot find it. This is an issue though.
This is indeed very annoying and I can't imagine why tomboy should behave this way. How can I help to get this fixed?
(In reply to comment #2) I've just tested this and it does work, but it doesn't name the Note with the name that was specified on the command line. So tomboy --new-note "Does this thing work" will create a new note, but with the generic Note Title. The fix for the original issue was in August. commit f93b605a6dfc22be9a0951039fb2e9d10586ec82 Author: Matteo Nardi <matteo@matteonardi.org> Date: Fri Aug 31 20:26:04 2012 +0200 Bug 670928 - cmdline ignored if Tomboy is running Command line arguments get ignored if Tomboy is already running. This is caused by named mutexes which, since Mono 2.8 [1], work only if the MONO_ENABLE_SHM environment variable is set. I assume this setting was changed for a good reason and we now use DBus for single-instance detection. [1] http://www.mono-project.com/Release_Notes_Mono_2.8#Shared_handles_are_disabled_by_default Signed-off-by: Jared Jennings <jjennings@src.gnome.org>
Okey, then this change didn't make it into the ubuntu repositories yet. What about the second issue you mention?
(In reply to comment #4) It appears to be at http://bazaar.launchpad.net/~vcs-imports/tomboy/master/revision/3358 Would you want to get me a trace of the scenario you are experiencing? mono --debug --trace=N:Tomboy Tomboy.exe > trace_tomboy.log
Closing this bug as I believe the original issue was fixed. See bug 691153 for the second issue. Hopefully it wont be too hard to fix.