After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689964 - The --new-note command raises the search window (if already running) in Mint Debian
The --new-note command raises the search window (if already running) in Mint...
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
1.10.x
Other Linux
: Normal normal
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-12-10 11:14 UTC by msth67
Modified: 2013-01-19 23:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description msth67 2012-12-10 11:14:13 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
Comment 1 Jared Jennings 2012-12-11 15:44:49 UTC
I thought this had been addressed in another bug, but I cannot find it. This is an issue though.
Comment 2 Martin Schröder 2013-01-04 10:49:47 UTC
This is indeed very annoying and I can't imagine why tomboy should behave this way.
How can I help to get this fixed?
Comment 3 Jared Jennings 2013-01-04 17:02:53 UTC
(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>
Comment 4 Martin Schröder 2013-01-06 09:15:33 UTC
Okey, then this change didn't make it into the ubuntu repositories yet.

What about the second issue you mention?
Comment 5 Jared Jennings 2013-01-07 15:39:52 UTC
(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
Comment 6 Jared Jennings 2013-01-19 23:02:57 UTC
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.