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

Small window on HDPI screens #71

Open
blue-devil opened this issue Sep 21, 2022 · 5 comments
Open

Small window on HDPI screens #71

blue-devil opened this issue Sep 21, 2022 · 5 comments

Comments

@blue-devil
Copy link

Hello @horsicq

I have started using the AppImage release of Detect it easy v3.06 on Linux (ArchLinux) and the parameters below do not work on my HDPI screen:

/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=2 ./Detect_It_Easy-3.06-x86_64.AppImage $*
/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=1  ./Detect_It_Easy-3.06-x86_64.AppImage $*
/usr/bin/env GDK_SCALE=2 ./Detect_It_Easy-3.06-x86_64.AppImage $*

Temporary workaround

So I downloaded die_3.06_portable_Ubuntu_20.04_amd64.tar.gz When i run die.sh from commandline it gave me this error of missing libraries:

./die.sh 
./base/die: error while loading shared libraries: libicui18n.so.66: cannot open shared object file: No such file or directory

Apparently i am missing those libraries, but i have already using the latest libicu on my arch linux (btw) machine. Totally by chance I have realized that Binary Ninja v3.1.3469 also uses that library and i copy/paste libicui18n.so.66, libicudata.so.66 and libicuuc.so.66 files inside base folder. Then I do not touch die.sh file, instead i have created new script for myself to copy under /usr/bin:

#!/bin/bash

export DETECTITEASY_HOME="/opt/scttools/scanners/detect-it-easy/v3_06/"

/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=2 $DETECTITEASY_HOME/die.sh $*

With the latest script above i can now get a normal size window on my HDPI screen.

@horsicq
Copy link
Owner

horsicq commented Sep 21, 2022

Thanks a lot for the testing!

BTW did you try the file?
It is for ArchLinux: https://github.com/horsicq/DIE-engine/releases/download/3.06/detect-it-easy-3.06-1-x86_64.pkg.tar.zst

pacman -U detect-it-easy-3.06-1-x86_64.pkg.tar.zst

Or these:
https://aur.archlinux.org/packages/detect-it-easy
https://aur.archlinux.org/packages/detect-it-easy-git

@horsicq
Copy link
Owner

horsicq commented Sep 21, 2022

AppImage has been compiled for old version of Qt to run everywhere.
So QT_SCALE_FACTOR does not work. :(

@blue-devil
Copy link
Author

I have tried those and they are working. But the problem is the view/scaling on HDPI screen. The packeges you provide above are also very small on a HDPI screen.

# pacman -U detect-it-easy-3.06-1-x86_64.pkg.tar.zst
# die                    ;; draws small screen on HDPI
# /usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=2 /usr/bin/die ;;draws normal window on HDPI screen

@blue-devil
Copy link
Author

AppImage has been compiled for old version of Qt to run everywhere. So QT_SCALE_FACTOR does not work. :(

No problem, other packages are working

@horsicq
Copy link
Owner

horsicq commented Sep 21, 2022

I have tried those and they are working. But the problem is the view/scaling on HDPI screen. The packeges you provide above are also very small on a HDPI screen.

# pacman -U detect-it-easy-3.06-1-x86_64.pkg.tar.zst
# die                    ;; draws small screen on HDPI
# /usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=2 /usr/bin/die ;;draws normal window on HDPI screen

Ok. I will take a look.

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

No branches or pull requests

2 participants