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
megasync 4.0.2 linux doesn't follow qt5ct settings #275
Comments
Hi @daddy33 , thanks for posting that here.
In any case, we might be able to improve you experience if you tell us what's your OS, desktop environment, theme settings, what do you refer with |
it also fixes missing tray icon for me |
I noticed the following. If I use kvantum style (megasync --style=kvantum), then I have the same problem with dark themes (background of the application window remains light). But if I tweak the kvantum style with kvantum manager by ticking in the "Compositing & General look" tab the "Translucent windows" option, then I have the expected result! |
Still not working. That might sound a bit stupid but that's one of the reasons why I cancelled my pro plan a few months ago... |
Running this fixes the issue for me: QT_SCALE_FACTOR=1 megasync |
I can confirm that you need both settings DO_NOT_UNSET_QT_QPA_PLATFORMTHEME=1 in order to have megasync follow my own special Qt theme through qt5ct. If I start it with DO_NOT_UNSET_QT_QPA_PLATFORMTHEME=1 DO_NOT_SET_DESKTOP_SETTINGS_UNAWARE=1 QT_SCALE_FACTOR=1 megasync & then I see Not setting scale factors. Using predefined QT_SCALE_FACTOR= 1 and the dialogs are indeed too small. So QT_SCALE_FACTOR is unrelated to the theme, it corrects only the scaling, as the name suggests. So for me the solution is to run megasync as follows: DO_NOT_UNSET_QT_QPA_PLATFORMTHEME=1 DO_NOT_SET_DESKTOP_SETTINGS_UNAWARE=1 megasync & For the developers: maybe you can insert some check like "if you are in Linux and if there is a qt5ct theme active, then behave as if DO_NOT_UNSET_QT_QPA_PLATFORMTHEME=1 DO_NOT_SET_DESKTOP_SETTINGS_UNAWARE=1". |
Here is some system information for my above comment: Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.0/hardened, gcc-9.3.0, glibc-2.30-r8, 4.19.81-gentoo x86_64)System uname: Linux-4.19.81-gentoo-x86_64-Intel-R-_Core-TM-i7-6700HQ_CPU@_2.60GHz-with-gentoo-2.6 sh bash 5.0_p17 Note for anybody using Gentoo (Note for the developers: you can use this info to install megasync on a Gentoo system and test it ;-) This will also give you the environment where this issue manifests itself): How to install megasync 4.3.7.0 on GentooI used the ebuild from https://data.gpo.zugaina.org/4nykey/net-misc/megasync/ (all three needed for megasync). I copied the net-misc/megasync/ from above to a local overlay of mine and merged the ebuilds from there. NOTE: If you do it this way, i.e. without adding the whole 4nykey overlay to your local overlays through layman, you must add the file https://github.com/4nykey/4nykey/blob/master/profiles/thirdpartymirrors to the profiles directory of your local overlay. Otherwise, portage will not find the mirrors and the right sources. See 4nykey/4nykey#14 . Now you should be able to reproduce the above. :-) |
|
issue was unrelated and got solved. |
At Linux Mint LMDE 5 (based on Debian 11). |
for me, the solution was to remove this qt plugin for deepin that was unrelated.
MEGA's excellent support found the solution as I worked with them sending gdb traces. hope it helps someone. |
Hello,
launching from command line gives "Error unsetting QT_QPA_PLATFORMTHEME vble", and the theme always falls back to default qt style.
If I run megasync --style=gtk2, it is more or less working, but dark themes have issues.
Thanks.
The text was updated successfully, but these errors were encountered: