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 443655 - Tomboy shows search box on startup
Tomboy shows search box on startup
Status: RESOLVED NOTABUG
Product: tomboy
Classification: Applications
Component: General
unspecified
Other All
: Normal minor
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-03 18:31 UTC by Todd Chambery
Modified: 2010-08-06 17:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Do not open search at startup when tray icon is not ready after 2 secs (1.64 KB, patch)
2010-08-01 10:56 UTC, Stefan Schweizer
committed Details | Review

Description Todd Chambery 2007-06-03 18:31:05 UTC
I use tomboy, often enough that I've set it start with the Desktop.  Unfortunately, the latest version (shipping with Feisty) displays the search box on startup.

While it's always annoying to have to close a window I didn't open, sometimes it steals focus, which is unacceptable.

Please remove the "show search box on start" functionality, or at least provide an option in the preferences/gconf to turn it off.

Other than this complaint, I really like this product, and thanks for your good work!

Other information:
Comment 1 Stefan Schweizer 2007-06-03 20:36:39 UTC
Tomboy should only open the search dialog on startup if

* it is started with the --search option
* the tray icon does not appear after 2 seconds
* or Tomboy is already running.
(Did I forget something?)

Does one of these scenarios apply to your problem?
Comment 2 Sandy Armstrong 2007-06-04 05:11:32 UTC
The default tomboy.desktop file starts Tomboy with the --search option, and Ubuntu 7.04 does, too.

You can change this in Feisty by selecting System->Preferences->Main Menu, then find Tomboy's entry, right-click and choose Properties, and remove "--search" from the Command entry.

We added this behavior because users who didn't run with Tomboy as part of their session (as a panel applet, for example) were confused when they launched the app and nothing showed up (they didn't notice the entry in their system tray).

I'm going to resolve this as NOTABUG, because the behavior can easily be avoided by removing --search from the Tomboy command.

Thanks for the bug report; I hope the responses will help you use Tomboy the way you want!  :-)
Comment 3 Todd Chambery 2007-06-06 13:24:37 UTC
That fixes it, thanks for the help.  

While this works for me, I still think exposing it explicitly as a preference is the way to go ("Show search dialog on startup").
Comment 4 Todd Chambery 2007-06-07 13:38:36 UTC
Removing the --search fixed the problem for the Main Menu, but after adding it again to the Preferences->Sessions, Startup Programs as "tomboy" (no arguments), the search box appears when my Gnome session starts.

Starting Tomboy from the commandline as "tomboy" does not show the search box.
Comment 5 Sandy Armstrong 2007-09-04 13:38:40 UTC
*** Bug 473549 has been marked as a duplicate of this bug. ***
Comment 6 Igor Kravchuk 2010-07-27 17:27:16 UTC
I don't understand current status NOTABUG, as I cannot stop search window opened on each logon (restart). I have removed --search options from all tomboy.desktop files (too vague info about --search functionality is led to this :))
/usr/share/applications/tomboy.desktop
/home/isk/.config/autostart/tomboy.desktop
/home/isk/.local/share/applications/tomboy.desktop
with no luck!
There is also /usr/share/app-install/desktop/tomboy.desktop which one of Ubuntu Software Center as I assume, should I remove --search from there too? :)

My environment is ubuntu lucid, tomboy was purged (aptitude purge tomboy), data and config files (.config/tomboy) are removed manually (as they are not purged indeed) and tomboy reinstalled. Tomboy is added to autostart /home/isk/.config/autostart as Exec=tomboy (without --search)

Please explain what am I doing wrong?
Comment 7 Sandy Armstrong 2010-07-27 21:00:49 UTC
This 3-year-old bug was closed because the only issue was that the user didn't know that Tomboy was supposed to show the Search window on startup in the default .desktop file.

Your problem sounds like an actual bug, which should be filed as a new bug.

I would guess, though, that you are either launching Tomboy twice by mistake, or that something is causing your panel to load slowly enough that Tomboy starts more than 2 seconds before its icon appears in the notification area.
Comment 8 Igor Kravchuk 2010-07-28 08:12:09 UTC
Thanks for the reply, 

I have only one desktop entry for tomboy in .config/autostart, also grep -r tomboy /etc/xdg/autostart/ shows nothing, how else can tomboy be launched twice on logon?

As for slowly loading panel.. I'm not sure if hardware matter is appropriate, my hardware is based on core i5 650, though I experience same "bug" on my home machine too (core2duo) and I cannot see visually any slowness! I have also goldendict desktop entry in autostart (though disabling it does not help) and 
standard set of such panel applets: notification area, indicator applet, system monitor, clock, indicator applet session, show desktop - that's all. How can I trace whether panel is slow indeed? though as I said, I don't see slowness for about 2 sec.

Also, I have noticed this "bug" takes place on system restart only, i.e. logout and login again does not cause opening annoying search window.
Comment 9 Stefan Schweizer 2010-07-30 14:59:07 UTC
I guess that most problems with opening the search dialog at startup (there are a few bugs currently open in bugzilla about that) are caused by the feature that tomboy does that automatically after 2 seconds when the icon in the notification area is not ready yet. I don't know why it was implemented that way, a source code comment says that it is for cases when the notification area is not available. For those rare cases tomboy could always be started with the --search option. So why don't we remove that feature?
Comment 10 Sandy Armstrong 2010-07-30 16:16:26 UTC
This is a good point, Stefan.

If we keep --search in the default .desktop, then that should cover the case of "users new to Tomboy who don't have a notification area for whatever reason".

Anyone who is starting Tomboy without --search is probably advanced enough to deal with lack of notification area themselves.

Stefan, feel free to patch this out.  You can attach to this bug or a new one, whichever you prefer.
Comment 11 Stefan Schweizer 2010-08-01 10:56:45 UTC
Created attachment 166917 [details] [review]
Do not open search at startup when tray icon is not ready after 2 secs
Comment 12 Stefan Schweizer 2010-08-06 14:06:03 UTC
Sandy, do you have any comments on the patch?
Comment 13 Sandy Armstrong 2010-08-06 15:59:02 UTC
Review of attachment 166917 [details] [review]:

Sorry for the delay, please push.  Thanks Stefan!