ElectronMail icon indicating copy to clipboard operation
ElectronMail copied to clipboard

ElectronMail v4.12.0 snap package font error

Open traplens opened this issue 4 years ago • 12 comments
trafficstars

Hello,

I have a font problem with the snap package of electron-mail under Manjaro Linux. The file open dialog, that I want to use, when I want to import a ics calendar (ProtonCalendar); (or when I want to add an attachment to an email), the dialog shows only Rectangles [] instead of a font. Which fonts does it needs?

System info:

  • OS: Manjaro Linux x86_64
  • Kernel: 5.11.10-1-MANJARO
  • Uptime: 17 mins
  • Packages: 1788 (pacman), 26 (flatpak), 13 (snap)
  • Shell: bash 5.1.0
  • Resolution: 3840x2160
  • DE: GNOME 3.38.4
  • WM: Mutter
  • WM Theme: Matcha-sea
  • Theme: Matcha-sea [GTK2/3]
  • Icons: Papirus-Maia [GTK2/3]
  • Terminal: gnome-terminal
  • CPU: AMD Ryzen 7 3700X (16) @ 3.600GHz
  • GPU: NVIDIA GeForce GTX 1660 SUPER
  • Memory: 2841MiB / 32083MiB

Kind regards traplens

traplens avatar Apr 10 '21 18:04 traplens

Which fonts does it needs?

Maybe try starting the app via console like snap run electron-mail so some info gets printed to the output (like missed fonts warnings).

vladimiry avatar Apr 10 '21 18:04 vladimiry

I have run this command in Gnome-Terminal. However, it does not print out any error message.

I found a similar bug and deleted the font cache too, unfortunately that doesn't help either: like here

traplens avatar Apr 10 '21 19:04 traplens

Hope some experienced Snap users will step in and assist since I'm not one of them.

vladimiry avatar Apr 10 '21 19:04 vladimiry

What I've noticed is that gnome-platform and data-dir folders of the app package are empty which I guess according to https://github.com/electron-userland/electron-builder/blob/66f01bba33523544813418332a5643f8b09f5421/packages/app-builder-lib/templates/snap/snapcraft.yaml should not be empty. Just a guess though that it's a matter of Snap package misconfiguration.

vladimiry avatar Apr 10 '21 19:04 vladimiry

I tested Mate-Terminal with following output:

snap run electron-mail (node:5708) DeprecationWarning: file property is deprecated and will be removed in v5. (Use electron-mail --trace-deprecation ...to show where the warning was created) Gtk-Message: 21:59:15.313: Failed to load module "xapp-gtk3-module" Gtk-Message: 22:01:24.015: GtkDialog mapped without a transient parent. This is discouraged. ^[[AGtk-Message: 22:02:03.691: GtkDialog mapped without a transient parent. This is discouraged.

traplens avatar Apr 10 '21 20:04 traplens

Try this: sudo pacman -S noto-fonts noto-fonts-emoji noto-fonts-cjk.

vladimiry avatar Apr 10 '21 22:04 vladimiry

Can you also run ls /snap/electron-mail/current/data-dir/themes/ ? Just curious. In my case it's empty but my understanding is that themes should be linked from gtk-common-themes defined as provider.

vladimiry avatar Apr 10 '21 22:04 vladimiry

Install the noto-fonts doesn't help. The error only occurs in the almost the same dialog window, when you insert following command in the console: zenity --file-selection

And yes the themes folder is empty.

traplens avatar Apr 11 '21 07:04 traplens

In my case it's empty but my understanding is that themes should be linked from gtk-common-themes defined as provider.

And yes the themes folder is empty.

If I run snap run --shell electron-mail and then ls $SNAP/data-dir/themes, it prints the theme names. So gtk-common-themes seems to be well connected.

vladimiry avatar Apr 11 '21 09:04 vladimiry

$SNAP/data-dir/themes
Adwaita		   Communitheme-light  Materia-dark
Adwaita-dark	   Greybird	       Materia-dark-compact
Ambiance	   Greybird-dark       Materia-light
Ambiant-MATE	   HighContrast        Materia-light-compact
Ambiant-MATE-Dark  Matcha-aliz	       Radiance
Arc		   Matcha-azul	       Radiant-MATE
Arc-Dark	   Matcha-dark-aliz    Yaru
Arc-Darker	   Matcha-dark-azul    Yaru-dark
Breeze		   Matcha-dark-sea     Yaru-light
Breeze-Dark	   Matcha-sea	       elementary
Communitheme	   Materia
Communitheme-dark  Materia-compact

[sth@manjaro ~]$ sudo pacman -S gtk-common-themes
[sudo] Password for sth: 
Error: Target not found: gtk-common-themes

[sth@manjaro ~]$ sudo snap install gtk-common-themes
snap "gtk-common-themes" is already installed, see 'snap help refresh'

traplens avatar Apr 11 '21 15:04 traplens

I had the same issue & I can confirm its resolved when I installed the AUR binary package instead of snap. Thanks @vladimiry for your efforts.

ajay-actuary avatar May 09 '21 08:05 ajay-actuary

You could also try flatpak option if you prefer to have some isolation.

vladimiry avatar May 09 '21 08:05 vladimiry