Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeePassXC 2.4.0 AppImage UI huge on Ubuntu 18.10 #2808

Closed
bungabunga opened this issue Mar 20, 2019 · 39 comments
Closed

KeePassXC 2.4.0 AppImage UI huge on Ubuntu 18.10 #2808

bungabunga opened this issue Mar 20, 2019 · 39 comments

Comments

@bungabunga
Copy link

Since updating AppImage to 2.4.0 the UI is huuuge. It take nearly all of the screen.

Expected Behavior

Normal size (resolution) UI as in 2.3.4

Current Behavior

Huge UI, problems with resolution.

Debug Info

[NOTE]: KeePassXC - Version 2.4.0
Revision: c51752d
Distribution: AppImage

Libraries:

  • Qt 5.10.1
  • libgcrypt 1.8.1

Operating system: Ubuntu 18.10
CPU architecture: x86_64
Kernel: linux 4.18.0-16-generic

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (only unsigned sharing)
  • YubiKey
    KeePassXC - 2.4.0

Libraries:

  • LIBS

Operating system: Ubuntu 18.10
CPU architecture: Intel
Kernel: KERNEL 4.18.0.16.17

Enabled extensions:

  • EXTENSIONS Browser extension
@bungabunga bungabunga added the bug label Mar 20, 2019
@droidmonkey
Copy link
Member

Screenshot please. Are you running a 4k setup?

@bungabunga
Copy link
Author

my resolution is 1920x1080. it's a laptop.

xc

@droidmonkey
Copy link
Member

Are you using Wayland

@bungabunga
Copy link
Author

i don't know. i use what is default on ubuntu 18.10. the UI looks normal if i use snap version, i don't know for the .deb, because it wasn't upgraded yet.

@droidmonkey
Copy link
Member

Ok I'll check, this was built and tested on 18.04

@droidmonkey
Copy link
Member

I cannot replicate on 18.10 running from live cd:

image

@ctonsing
Copy link

ctonsing commented Mar 20, 2019

Mine is also showing like this on Ubuntu 16.04:
image

It was displaying normal up until today...

@popxunga
Copy link

Seeing the same with 2.4.0 Keepassxc appimage in RHEL 7.6 with gnome 3.28.3.
Screen resolution is 1920x1080 (16:9).

image

image

@coalwater
Copy link

Confirming the same issue with Archlinux, X11, i3
Wasn't a blocker but I had to downgrade for other reasons.

@droidmonkey
Copy link
Member

I need more information from all of you.

  1. What theme are you using?
  2. Do you have qt5ct installed?
  3. Do you have your desktop configured to be scaled (ie, 150%)?

@vanous
Copy link

vanous commented Mar 21, 2019

Same issue here. Desktop is at 100%, no scaling.

vanous@debthinkpad:$ uname -a
Linux debthinkpad 5.0.0-trunk-amd64 #1 SMP Debian 5.0.1-1~exp1 (2019-03-12) x86_64 GNU/Linux
vanous@debthinkpad:$ cat /etc/debian_version
buster/sid

Theme adwaita

Gnome 3.30.2

@bungabunga
Copy link
Author

bungabunga commented Mar 21, 2019

  • default theme
  • qt5ct not installed
  • desktop not scaled (100%)

@droidmonkey
Copy link
Member

Also need output of: env | grep QT_

@bungabunga
Copy link
Author

QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus

@popxunga
Copy link

I need more information from all of you.

1. What theme are you using?

2. Do you have qt5ct installed?

3. Do you have your desktop configured to be scaled (ie, 150%)?

Hi !

  1. Adwaita.
  2. No.
  3. No.
    Thanks.

@popxunga
Copy link

Also need output of: env | grep QT_
QT_GRAPHICSSYSTEM_CHECKED=1
QT_IM_MODULE=xim

@vanous
Copy link

vanous commented Mar 21, 2019

vanous@debthinkpad:~$ env | grep QT
QT_ACCESSIBILITY=1

setting QT_ACCESSIBILITY=0 didn't help.

@droidmonkey
Copy link
Member

Interesting enough I installed qt5ct and that application is showing as enlarged whereas KeePassXC snap and appimage show normally. I even tried setting various High DPI settings and platform themes. I cannot get it to look like your screenshots.

Did you all download the fresh AppImage or use zsync?

@vanous
Copy link

vanous commented Mar 21, 2019

@vanous
Copy link

vanous commented Mar 21, 2019

qt5ct seems ok.., one info message there:

Screenshot from 2019-03-21 19-23-57

@popxunga
Copy link

popxunga commented Mar 21, 2019

Interesting enough I installed qt5ct and that application is showing as enlarged whereas KeePassXC snap and appimage show normally. I even tried setting various High DPI settings and platform themes. I cannot get it to look like your screenshots.

Did you all download the fresh AppImage or use zsync?
I've download it from here

sha256sum KeePassXC-2.4.0-x86_64.AppImage shows:
559be14b9f24feb6bded010aef55dd7cb72b3cb081485c49a548bd614dba4324 KeePassXC-2.4.0-x86_64.AppImage
The checksum matches the checksum published here

@beanaroo
Copy link

beanaroo commented Mar 22, 2019

I have the same problem.

  • Arch / GNOME 3.32 / Wayland
  • 2048 x 1152 / 100%

I installed qt5-wayland and all things look good when running:

$ QT_QPA_PLATFORM=wayland keepassxc

(but unfortunately clipboard doesn't work only works when ctrl-c/v on selected text and randomly segfaults when navigating the menu)

@coalwater
Copy link

Replying to your questions for my above comment: #2808 (comment)

  1. What theme are you using?

Apparently Raleigh [GTK2/3]

  1. Do you have qt5ct installed?

No

  1. Do you have your desktop configured to be scaled (ie, 150%)?

I have these 2 envrionment variables in my .xinitrc

export GDK_SCALE=2
export QT_SCALE_FACTOR=1.2

But also keep in mind that this change happens in the same X session if I do the upgrade, so regardless of the scaling, they relatively look different in scale

@droidmonkey
Copy link
Member

droidmonkey commented Mar 22, 2019

I'm going to rebuild the AppImage and see what happens. I am really surprised nobody experienced this in the 3 months of beta testing.

@phoerious
Copy link
Member

May I express how disappointed I am of the state of HiDPI on the Linux desktop? This is starting to become a never-ending story.

@affinityv
Copy link

Look at the links from the following comment (and two below), it might help with your problem.
#2815 (comment)

@bungabunga
Copy link
Author

yes, this works for me! \o/

but it seems to be a clumsy solution for a program aimed at general audience. can this solution be somehow incorporated into the application? hove come it worked fine until v2.4.0?

@droidmonkey
Copy link
Member

droidmonkey commented Mar 22, 2019

@pstorch
Copy link

pstorch commented Mar 27, 2019

I got the 2.4.0 update via PPA today. I have two monitors (laptop + external). They have different DPI settings (obviously).

On the Laptopscreen it is too small:
Screenshot from 2019-03-27 20-54-03

On the external Monitor it is too big:
Screenshot from 2019-03-27 20-54-24

The settings in the .profile as menitoned in the linked comment above didn't help.

Update:
Somehow the .profile isn't sourced on my system anymore automatically. When I source it manually and start KeePassXC from commandline the UI scales correctly.

@phoerious
Copy link
Member

phoerious commented Mar 28, 2019

You need to set it in .xsession, otherwise your X session won't source it.

@dupondje
Copy link
Contributor

I have the same issue, KeepassXC looks way to big for the resolution of my screen.
Running 3840x2160 and 150% scaling on Wayland.

But it seems like Qt just doesn't correctly support fractional scaling:
https://blog.qt.io/blog/2018/12/14/whats-new-wayland-platform-plugin-qt-5-12/

Maybe just disable the HiDPi support when running KeepassXC in Wayland?
Guess nobody on X11 has this issue?

In 2.3 it looked just fine, so won't hurt to drop it again on Wayland as it breaks more then it fixes currently.
Eventually you could add some setting to force disable/enable it.

@vanous
Copy link

vanous commented Mar 28, 2019

I have the same issue, KeepassXC looks way to big for the resolution of my screen.

for me, after testing sevral settings, the QT_AUTO_SCREEN_SCALE_FACTOR=0 works the best, i have added it to the .desktop file:

Exec=env QT_AUTO_SCREEN_SCALE_FACTOR=0 /path/to/KeePassXC-2.4.0-x86_64.AppImage %U

(which for some season is not created automatically upon first run, so i modified an older one)

@phoerious
Copy link
Member

.desktop files are not created anymore, since desktop integration scripts were deprecated. Use appimaged instead.

@vanous
Copy link

vanous commented Mar 28, 2019

Until appimaged is available in distros, this will be a regression... so i will keep my .desktop and the packaged appimage should ideally too...

~$ cat /etc/debian_version 
buster/sid
~$ apt search appimaged
Sorting... Done
Full Text Search... Done

@affinityv
Copy link

Does appimaged rely upon systemd? I hope not, I have a sans systemd preference for all systems that I manage.

@plegrand1
Copy link

I had same problem and
"Exec=env QT_AUTO_SCREEN_SCALE_FACTOR=0 /path/to/KeePassXC-2.4.0-x86_64.AppImage %U"
solved this

@stucki
Copy link

stucki commented Apr 11, 2019

This was probably closed because it seems to be a duplicate of #2815 /cc @droidmonkey

@droidmonkey
Copy link
Member

Yes I closed all of the DPI issues. They are related to our added support of High DPI from Qt which unfortunately carries the baggage of having to setup your DPI environment on some platforms. Qt should be doing this automatically, but does not (yet?).

@krzkrzkrz
Copy link

Just sharing what works for me on Arch Linux with the Keepassxc AUR package installed. At /usr/share/applications/org.keepassxc.KeePassXC.desktop, I have:

Exec=env QT_SCREEN_SCALE_FACTORS=2 keepassxc %f

Hopefully, this helps somebody

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests