You are not logged in.

#1 2020-07-30 08:32:12

coder3101
Member
Registered: 2020-07-30
Posts: 3

Launching some GUI apps from terminal does not renders them properly

I have this weird issue where if I try to launch any application from Konsole, the UI of the launched application is half baked, widgets are not rendered completely if I hover the mouse pointer over them, partially visible widgets disappear completely.

Here is how Dolphin looks when launched from Konsole.

https://i.imgur.com/eIRutzr.png

When the same application is launched from Launcher, it looks fine. Moreover, this issue is not with all applications, for instance, if I launch firefox from Konsole, it looks fine.
Here is how it looks when launched from Launcher

https://i.imgur.com/G8WuNoR.png

Initially, I thought this was a theme issue so I tried setting themes to Breeze yet the issue was not resolved.  I am providing below all the details that could be relevant in helping me.

Operating System: Arch Linux
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.4.53-1-lts
OS Type: 64-bit
Processors: 8 × Intel® Core™ i5-8265U CPU @ 1.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

Please let me know any other details that you want me to share.

Thanks

Mod edit: Replaced images with urls -- V1del

Last edited by V1del (2020-07-30 10:03:54)

Offline

#2 2020-07-30 10:03:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Launching some GUI apps from terminal does not renders them properly

Remove xf86-video-intel if it is installed and retry. If that didn't help what's the output of

printenv

from konsole? Post that in [ code ] [ /code ] tags (without the spaces) Also please only post thumbnails or links to images: https://wiki.archlinux.org/index.php/Co … s_and_code

Last edited by V1del (2020-07-30 10:04:36)

Offline

#3 2020-07-30 10:32:37

coder3101
Member
Registered: 2020-07-30
Posts: 3

Re: Launching some GUI apps from terminal does not renders them properly

Removing xf86-video-intel did not helped.

Output of printenv from konsole is:

COLORFGBG=0;15
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=/usr/share/xsessions/plasma
DISPLAY=:0
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/ashar/.gtkrc-2.0:/home/ashar/.config/gtkrc-2.0
GTK_MODULES=canberra-gtk-module:appmenu-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:/home/ashar/.gtkrc:/home/ashar/.config/gtkrc
HOME=/home/ashar
KDED_STARTED_BY_KDEINIT=1
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
KONSOLE_DBUS_SERVICE=:1.65
KONSOLE_DBUS_SESSION=/Sessions/1
KONSOLE_DBUS_WINDOW=/Windows/1
KONSOLE_VERSION=200403
LANG=en_US.UTF-8
LANGUAGE=
LOGNAME=ashar
MAIL=/var/spool/mail/ashar
OLDPWD=/home/ashar
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PROFILEHOME=
PWD=/home/ashar
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_SCALE_FACTOR=0.8
QT_SCREEN_SCALE_FACTORS=eDP1=1;DP1=1;HDMI1=1;VIRTUAL1=1;
SHELL=/usr/bin/zsh
SHELL_SESSION_ID=d547710a7c5d4bcfba58057b48d3329f
SHLVL=1
TERM=xterm-256color
UBUNTU_MENUPROXY=1
USER=ashar
WINDOWID=73400327
XAUTHORITY=/home/ashar/.Xauthority
XCURSOR_SIZE=24
XCURSOR_THEME=McMojave-cursors
XDG_CURRENT_DESKTOP=KDE
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=1
_=/usr/bin/printenv
P9K_TTY=old
ZSH=/home/ashar/.oh-my-zsh
PAGER=less
LESS=-R
LSCOLORS=Gxfxcxdxbxegedabagacad
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
P9K_SSH=0

Offline

#4 2020-07-30 13:32:19

seth
Member
Registered: 2012-09-03
Posts: 50,003

Re: Launching some GUI apps from terminal does not renders them properly

QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_SCALE_FACTOR=0.8
QT_SCREEN_SCALE_FACTORS=eDP1=1;DP1=1;HDMI1=1;VIRTUAL1=1;

Likely cause.
What's the output of "xrandr -q" and what sets those variables? Your zshrc?


… … … … …
5 seconds later

ZSH=/home/ashar/.oh-my-zsh

Quelle surprise…

If you dn't know what sets those variables or removing them doesn't help and also in general and any event:
Lose OMZ.
It's the #1 answer to "why does my shell do weird things?"

UBUNTU_MENUPROXY=1

??

Online

#5 2020-07-30 13:34:45

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: Launching some GUI apps from terminal does not renders them properly

You could start by overriding/unsetting the KDE and KONSOLE variables to see if that changes the behaviour.

Frankly, I don't see this as a problem. GUI apps are started from GUI.
As a test: can you start the apps in question with

dmenu_run

Offline

#6 2020-07-30 14:53:31

coder3101
Member
Registered: 2020-07-30
Posts: 3

Re: Launching some GUI apps from terminal does not renders them properly

Resolved.

It was due to that variable QT_SCALE_FACTOR=0.8, It was my mistake. I was trying to investigate adjust HiDpi settings a few weeks ago and set this variable from Konsole->Current Profile->Environments and forgot to unset. This also explains why it only applied to Qt apps and not GTK+ apps, because It was Qt variable.

Offline

Board footer

Powered by FluxBB