Bug 483201 - Wrong Electron programs scale/font dpi on Kde6 Wayland with 100% global scale
Summary: Wrong Electron programs scale/font dpi on Kde6 Wayland with 100% global scale
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.0.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-11 06:51 UTC by Wind He
Modified: 2024-03-15 04:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
comparison between obsidian and kwrite (47.05 KB, image/png)
2024-03-11 06:51 UTC, Wind He
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wind He 2024-03-11 06:51:36 UTC
Created attachment 166935 [details]
comparison between obsidian and kwrite

SUMMARY

My Electrons programs such as VSCode, Obsidian all small on kde plasma6 wayland, what ever they running on wayland or xwayland. I have 100% global scale in systemsettings.

STEPS TO REPRODUCE
1. Launch a VsCode/Obsidian with/without cmd flag
2. Both are small

OBSERVED RESULT

Electrons programs is small then kde programs.

EXPECTED RESULT

Correct font dpi maybe.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: HP
Product Name: OMEN by HP Laptop 16-b1xxx

ADDITIONAL INFORMATION

A comparison is offered in attachment. Left is obsidian, with 100% zoom on its setting and 13 pt font size. Right is Kwrite with 13pt font size.
By the way, xsettingsd.conf has` Gdk/UnscaledDPI 98304`, which is correctly 96 * 1024.
Comment 1 David Edmundson 2024-03-11 09:45:48 UTC
Please include output of "xrdb -q" and "env"
Comment 2 Wind He 2024-03-12 03:53:37 UTC
xrdb -q
```
Xcursor.size:   24
Xcursor.theme:  breeze_cursors
Xft.antialias:  1
Xft.hinting:    1
Xft.hintstyle:  hintslight
Xft.rgba:       rgb
```

env
```
GTK_RC_FILES=/etc/gtk/gtkrc:/home/heddxh/.gtkrc:/home/heddxh/.config/gtkrc
HOME=/home/heddxh
KONSOLE_DBUS_SESSION=/Sessions/1
WAYLAND_DISPLAY=wayland-0
LANGUAGE=zh_CN:en_US
LOGNAME=heddxh
XDG_MENU_PREFIX=plasma-
USER=heddxh
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/home/heddxh/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
XDG_SESSION_ID=2
KONSOLE_DBUS_SERVICE=:1.1030
__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json
XDG_DATA_DIRS=/home/heddxh/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_CONFIG_HOME=/home/heddxh/.config
XDG_SESSION_TYPE=wayland
HISTFILE=/home/heddxh/.local/state/bash/history
TERM=xterm-256color
XDG_SEAT=seat0
JOURNAL_STREAM=8:27177
HG=/usr/bin/hg
SHELL_SESSION_ID=557b85c551e442d5bc383223a920d0bd
KDE_SESSION_VERSION=6
XDG_ACTIVATION_TOKEN=kwin-293
XAUTHORITY=/run/user/1000/xauth_RvzLkq
SHLVL=1
SYSTEMD_EXEC_PID=2302
LANG=zh_CN.UTF-8
KDE_SESSION_UID=1000
COLORFGBG=15;0
COLORTERM=truecolor
DEBUGINFOD_URLS=https://debuginfod.archlinux.org https://repo.archlinuxcn.org 
GTK2_RC_FILES=/home/heddxh/.config/gtk-2.0/gtkrc
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=plasma
WGETRC=/home/heddxh/.config/wget/wgetrc
XDG_VTNR=2
XDG_STATE_HOME=/home/heddxh/.local/state
VIMINIT=let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC
XDG_CURRENT_DESKTOP=KDE
INVOCATION_ID=5382a66a990945f3acaa2432365966ce
KONSOLE_VERSION=240200
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_CLASS=user
XDG_DATA_HOME=/home/heddxh/.local/share
WINDOWID=4
XDG_RUNTIME_DIR=/run/user/1000
SHELL=/bin/bash
PWD=/home/heddxh
KONSOLE_DBUS_WINDOW=/Windows/1
SAL_USE_VCLPLUGIN=kf6
QT_WAYLAND_RECONNECT=1
QT_AUTO_SCREEN_SCALE_FACTOR=0
MOTD_SHOWN=pam
XMODIFIERS=@im=fcitx
PROFILEHOME=
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
XDG_SESSION_DESKTOP=KDE
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
KDE_APPLICATIONS_AS_SCOPE=1
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service/memory.pressure
SESSION_MANAGER=local/myArchLinux:@/tmp/.ICE-unix/2250,unix/myArchLinux:/tmp/.ICE-unix/2250
MANAGERPID=2031
MAIL=/var/spool/mail/heddxh
XDG_CACHE_HOME=/home/heddxh/.cache
DISPLAY=:0
KDE_FULL_SESSION=true
XDG_CONFIG_DIRS=/home/heddxh/.config/kdedefaults:/etc/xdg
```
Comment 3 David Edmundson 2024-03-14 13:59:32 UTC
This appears to be that applications aren't consistent. There doesn't look to be anything wrong at a Plasma level. It's not kwin, and it's not any exported settings. Sorry
Comment 4 Wind He 2024-03-15 04:14:01 UTC
I think you are right. VSCode seems don't have this problem. So it is not related to KDE. Thanks for your great work!!