tutanota icon indicating copy to clipboard operation
tutanota copied to clipboard

Linux desktop app resets the font size randomly

Open ngrigoriev opened this issue 2 years ago • 8 comments

  • [X] This is not a feature request (existing functionality does not work, not missing functionality). I will request features on forum or via support.
  • [X] I've searched and did not find a similar issue.

Describe the bug The application suddenly switches to larger font, even without restarting it

To Reproduce Steps to reproduce the behavior:

  1. Use the tiling window manager, the app occupies half of the screen
  2. Reduce the font size just to the list of mailboxes becomes visible (mouse wheel)
  3. Focus an email, etc
  4. Switch away to another desktop or app, do something
  5. Return back to Tutanota, the font size may be reset to the larger one and the list of mailboxes disappears (only the list of emails in the current mailbox will be shown)
  6. Restart the app, the font size may be reset to the larger one and only the email

Expected behavior

  1. There must be a way to control and PERSIST the font settings without using the mouse wheel (can't even do it with just touchpad!)
  2. Alternatively, the app should be able to adjust the layout to display the elements I want to see, e.g. the list of mailboxes + list of emails, no matter the window size
  3. The app must not change the font size on its own

Screenshots Sensitive, will not share

Desktop (please complete the following information):

  • Arch Linux / latest
  • i3 wm, no desktop environment
  • 3.96.6

Additional context GDK_DPI_SCALE=0.25 GDK_SCALE=3

(4k screen)

ngrigoriev avatar May 23 '22 15:05 ngrigoriev

Hi, we do not observe this, it might be related to the other issue you experience (losing config)

charlag avatar May 23 '22 15:05 charlag

Possible, although this issue happens at runtime, even without exiting the client. I run Tutanota in a separate desktop under i3 and it shares it with another app, so it is split perfectly 50/50. The screen size is native 4K.

ngrigoriev avatar May 24 '22 01:05 ngrigoriev

@charlag @ngrigoriev I can also confirm this issue exists. For me, it usually happens the first time I open it after Tutanota automatically runs on startup and when I click on a notification for a new email. It happens quite frequently. I often have to close the window and open it again to fix it. Sometimes, I have to do that multiple times.

OS: Linux Mint 20 Cinnamon App Version: 3.98.12 Installation Method: AppImage

ProfessorCode212 avatar Jul 22 '22 09:07 ProfessorCode212

We do believe that it exists, we just can't find a way to reproduce it so far

charlag avatar Jul 22 '22 15:07 charlag

I was able to consistently reproduce the issue with the following pattern. Not that I use Tutanota this way every time but I noticed that this pattern does reproduce it.

  • Run Tutanota under i3 wm on the workspace split 50/50 with another app (any app)
  • Use the Ctrl + mouse wheel to resize the font used by Tutanota small enough so the contents of the selected mailbox + email body are displayed
  • focus any email
  • focus another email that is NOT cached. Or large enough. Switch to another workspace quickly. Switch back to the workspace where Tutanota is running

After switching back you will see Tutanota repainting the email body and then you will immediately see it changing the scale factor and making the font larger - so the email body will take the entire window, the mailbox contents will disappear.

Two additional observations:

  1. My configuration is like this (at least I think it is the relevant part of it): "lastBounds": { "scale": 0.9, "fullscreen": false, "rect": { "x": 2, "y": 64, "width": 849, "height": 894 } },

  2. If I quit Tutanota after it resets the font size to the larger one and start it again, it actually restores my original (correct) font size. So the font size / scaling factor do not get persisted by Tutanota when it happens.

Hope it helps.

ngrigoriev avatar Jul 26 '22 20:07 ngrigoriev

@ngrigoriev thanks, I think it does help! We will see if we can get it. It looks like it's not related to the persistence at all, maybe it is some internal Electron issue.

charlag avatar Jul 28 '22 07:07 charlag

@ngrigoriev I'm sorry but I'm very confused. VS Code? JVM? This has nothing to do with our desktop app?

charlag avatar Jul 28 '22 15:07 charlag

@charlag I posted the reply to a wrong issue, it was intended for another project - this is why I have deleted it immediately from here. Sorry for the extra noise.

ngrigoriev avatar Jul 28 '22 15:07 ngrigoriev