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 778939 - MainWindow and db upgrade window created after account changing type to other on first run
MainWindow and db upgrade window created after account changing type to other...
Status: RESOLVED INCOMPLETE
Product: geary
Classification: Other
Component: client
master
Other Linux
: Normal normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on: 766199
Blocks:
 
 
Reported: 2017-02-20 08:19 UTC by alaneuler
Modified: 2018-02-07 06:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
after opening the geary (241.28 KB, image/png)
2017-02-20 08:19 UTC, alaneuler
Details
after changing service to other (240.13 KB, image/png)
2017-02-20 08:20 UTC, alaneuler
Details

Description alaneuler 2017-02-20 08:19:40 UTC
Created attachment 346237 [details]
after opening the geary

Linux arch 4.9.8-1-ARCH #1 SMP PREEMPT Mon Feb 6 12:59:40 CET 2017 x86_64 GNU/Linux GNOME: 3.22.2

After opening Geary, there is only one icon on the GNOME dock, but after changing the service to other, the number of Geary's icons on dock increases to 3. Closing Geary will close all the icon on dock.
Comment 1 alaneuler 2017-02-20 08:20:40 UTC
Created attachment 346238 [details]
after changing service to other
Comment 2 Michael Gratton 2017-02-23 06:23:57 UTC
Hi, thanks for reporting this. How have you installed Geary? From from source or fro the Arch repo? If the latter, which specific package did you install?
Comment 3 alaneuler 2017-02-26 11:36:49 UTC
Hi, I installed Geary from the Arch official repo.
The output of pacman -Qi geary is:

Name            : geary
Version         : 0.11.3+711+g4e27949d-1
Description     : A lightweight email client for the GNOME desktop
Architecture    : x86_64
URL             : http://www.yorba.org/projects/geary/
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : gnome-keyring  gmime  libcanberra  libgee  libnotify  librsvg
                  webkit2gtk
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 5.96 MiB
Packager        : Balló György <ballogyor+arch@gmail.com>
Build Date      : Fri 10 Feb 2017 01:07:24 AM CST
Install Date    : Sun 26 Feb 2017 03:10:59 PM CST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
Comment 4 alaneuler 2017-03-01 00:51:13 UTC
I don't know if it is some specific reason leading to this problem,
but on my laptop I can reproduce this problem. But on my desktop computer, this
problem never happens: icon display is ok, icons never increase after changing service; Is this a specific case?

and the output of `geary -d |& tee geary.out` has only one line:

    Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Comment 5 alaneuler 2017-03-01 00:57:07 UTC
The above output is:
1. Launch geary: geary -d |& tee geary.out
2. Change service several times
3. Press control-c in the terminal.
Comment 6 alaneuler 2017-03-05 02:56:20 UTC
I think I may find the reason causing this problem, my laptop using Wayland while my desktop using X11. After I change Wayland to X11 on my laptop, the weird problem is gone. So maybe this problem is causing by Wayland?

BTW, the bug (https://bugzilla.gnome.org/show_bug.cgi?id=778938) is also gone after I switch from Wayland to X11.
Comment 7 Michael Gratton 2017-03-05 14:45:54 UTC
This problem goes away once you have actually set up an account, and the main window has appeared, right?

If so, then the issue is first that when first launching Geary, the LoginDialog (which is shown by default when no accounts have created) is not associated with an ApplicationWindow, and hence not associated with GearyApplication, and (I think) that's how gnome-shell gets the icon.

Then, when changing the account type to Other, Geary ends up creating (but not showing) a few other windows, and the LoginDialog still does not have an ApplicationWindow parent. I'm not sure why gnome-shell is show icons for the other windows, since they are not yet visible, but maybe it's just enough for them to exist.

In any case, if so, this might be fixed by Neil's work on Bug 714104 and/or Bug 766199.