vladimiry / ElectronMail

Unofficial ProtonMail Desktop App
GNU General Public License v3.0
1.49k stars 98 forks source link

ElectronMail v4.12.0 snap package font error #391

Open traplens opened 3 years ago

traplens commented 3 years ago

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:

Kind regards traplens

vladimiry commented 3 years ago

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).

traplens commented 3 years ago

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

vladimiry commented 3 years ago

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

vladimiry commented 3 years ago

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.

traplens commented 3 years ago

I tested Mate-Terminal with following output:

snap run electron-mail (node:5708) DeprecationWarning: file property is deprecated and will be removed in v5. (Useelectron-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.

vladimiry commented 3 years ago

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

vladimiry commented 3 years ago

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.

traplens commented 3 years ago

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.

vladimiry commented 3 years ago

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.

traplens commented 3 years ago
$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'
ajay-actuary commented 3 years ago

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.

vladimiry commented 3 years ago

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