Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#51028 - [electron] 1.4.1-2 lost HiDPI ability
Attached to Project:
Community Packages
Opened by hexchain (hexchain) - Thursday, 29 September 2016, 02:11 GMT
Last edited by Bruno Pagani (ArchangeGabriel) - Thursday, 25 April 2019, 12:01 GMT
Opened by hexchain (hexchain) - Thursday, 29 September 2016, 02:11 GMT
Last edited by Bruno Pagani (ArchangeGabriel) - Thursday, 25 April 2019, 12:01 GMT
|
DetailsDescription:
After upgrading to 1.4.1-2 from 1.4.1-1, electron no longer scales itself to screen DPI. 1.4.1-1 does not have this problem. Additional info: $ xdpyinfo | grep -B2 resolution screen #0: dimensions: 2560x1600 pixels (338x211 millimeters) resolution: 192x193 dots per inch $ xrdb -query | grep Xft.dpi Xft.dpi: 192 $ pacman -Q electron electron 1.4.1-2 Steps to reproduce: 1. upgrade to 1.4.1-2 2. start electron (or atom) There are screenshots. |
This task depends upon
Closed by Bruno Pagani (ArchangeGabriel)
Thursday, 25 April 2019, 12:01 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed a long time ago.
Thursday, 25 April 2019, 12:01 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed a long time ago.
electron-1.4.1-1.png
GDK_SCALE is not set.
gcc `pkg-config --cflags gtk+-3.0` gtk-print-scale-factor.c -o gtk-print-scale-factor `pkg-config --libs gtk+-3.0`
I guess this is not very useful outside GNOME?
$ gsettings get org.gnome.desktop.interface scaling-factor
uint32 0
And your gtk-print-scale-factor:
Scale factor: 1
$ gsettings get org.gnome.desktop.interface scaling-factor
uint32 0
gtk-print-scale-factor:
Scale factor: 2
And electron correctly scales itself in GNOME.
So I guess it starts to depend on GTK scale factor instead of X dpi settings?
For now I can only recall that some GTK3 applications (Nemo file manager at least) do not scale at all because of no GDK_SCALE set outside GNOME, but Chromium (and Slack, aur/slack-desktop, which is using a prebuilt electron) scales correctly.
Running the commands gives:
gsettings get org.gnome.desktop.interface scaling-factor:
uint32 0
gtk-print-scale-factor:
Scale factor: 1
From the KDE environment, firefox scales fine. However, I installed gnome-terminal, nautilus and gedit and they do not scale. (gnome-terminal was deceptive because the console font seemed fine, but the menus were not)
When I unset the font dpi (to 96) firefox did not scale and nautilus and gnome-terminal, at least, were even smaller.
export GDK_SCALE=2 && atom
The same thing does not work with nautilus, gedit or gnome-terminal, with the result either being what appear to be no scaling or 4x scaling. It seems to me that this is a wider problem with the scaling of GTK3 apps outside of gnome.
*edit: you have to unset the font DPI or you will get 4x scaling
@tensor5: just confirmed that GTK3 apps' UI elements does not scale if only X dpi and Xft dpi are set, only text scales.
gsettings set org.gnome.desktop.interface scaling-factor 2
?
In this case I guess electron should behave like Chromium?
I’m using the --dpi arg of X to start it at a 192 DPI resolution, and have GDK_SCALE=2 in my profile.
That being said, maybe this would be solved by updating to latest electron, current release in Arch is very old.
~> xrdb -query | grep Xft.dpi
Xft.dpi: 192
~> xdpyinfo | grep -B2 resolution
screen #0:
dimensions: 3200x1800 pixels (847x476 millimeters)
resolution: 96x96 dots per inch
And there are no $GDK_* set.
https://git.archlinux.org/svntogit/community.git/tree/trunk/chromium-gtk3.patch?h=packages/electron
~ $ xrdb -query | grep Xft.dpi
Xft.dpi: 192
~ $ xdpyinfo | grep -B2 resolution
screen #0:
dimensions: 3200x1800 pixels (846x476 millimeters)
resolution: 96x96 dots per inch
No $GDK_* environment variables set.