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

2.3.4 Snap has "Windows 95" toolkit appearance instead of Fusion #2234

Closed
elcste opened this issue Aug 25, 2018 · 15 comments
Closed

2.3.4 Snap has "Windows 95" toolkit appearance instead of Fusion #2234

elcste opened this issue Aug 25, 2018 · 15 comments

Comments

@elcste
Copy link

elcste commented Aug 25, 2018

Since the Snap upgraded to 2.3.4, the toolkit appearance is blocky, like Windows 95, instead of Qt's Fusion Style:

screenshot at 2018-08-25 15-25-32

I tried reverting to 2.3.3 in case I was imagining things, and that does have Fusion Style:

screenshot at 2018-08-25 15-50-56

I'm using Ubuntu MATE 18.04, which I know sets QT_QPA_PLATFORMTHEME=gtk2, but I tried setting it to gtk3 in my ~/.profile and it didn't make a difference (and 2.3.3 works fine as is...)


Debug Info

KeePassXC - Version 2.3.4
Revision: 6fe821c
Distribution: Snap

Libraries:

  • Qt 5.5.1
  • libgcrypt 1.8.1

Operating system: Ubuntu Core 16
CPU architecture: x86_64
Kernel: linux 4.15.0-33-generic

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • Legacy Browser Integration (KeePassHTTP)
  • SSH Agent
  • YubiKey
@droidmonkey
Copy link
Member

Fun ... This doesn't happen in unity.. I'll play around with it

@elcste
Copy link
Author

elcste commented Aug 26, 2018

Let me know if there's some way I can help test!

I did try a new user account, and a second computer with Ubuntu MATE 18.04, and they both show the same thing, including it working fine when reverting to 2.3.3.

FWIW, this was also the first version where I saw a warning about Qt version and virtual keyboard (IIRC) the first time I launched it.

@Zap123
Copy link

Zap123 commented Aug 28, 2018

I can confirm this issue. It happened to me after keepassxc was automatically updated to 2.3.4.
I'm using Ubuntu 18.04.

Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"

(keepassxc:7932): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
...
Gtk-Message: Failed to load module "canberra-gtk-module"
Qt: Session management error: None of the authentication protocols specified are supported
/usr/share/libdrm/amdgpu.ids: No such file or directory
QObject::startTimer: Timers cannot have negative intervals

image

@droidmonkey
Copy link
Member

droidmonkey commented Aug 28, 2018

I have wasted a lot of time trying to figure out why snap does "X". I can replicate the issue on my build but cannot fix it. Unfortunately I do not want to keep wasting time on this issue, which I truly believe is a snapd issue.

Sorry for the rant...

@Zap123
Copy link

Zap123 commented Aug 28, 2018

Absolutely no problem! I'll make a thread on the snapcraft forum in case someone there knows if it's a known issue in snapd.
I'm also attaching a screenshot of the warning @elcste was referring to.

warning_qt_version

@droidmonkey
Copy link
Member

droidmonkey commented Aug 28, 2018

That warning was added in 2.3.4 because we were getting a lot of reports of crashes. Another thing that I hate about snaps is that they can only be built on 16.04 baseline which means we are locked in the past

@pachulo
Copy link

pachulo commented Aug 28, 2018

Hi! I faced this same issue and tried to solve it using the info from here: https://forum.snapcraft.io/t/shipping-later-qt-with-snap/6873

The resulting code is here: pachulo@db38aeb and I've used launchpad to compile the snap using Ubuntu 18.04: https://code.launchpad.net/~pachulo/+snap/keepassxc-snap-pachulo

So far it seems to work OK (both in Ubuntu 16.04 & 18.04): when installing the snap the core18 snap is pulled automatically and no warning is shown, as it is using Qt 5.9.5, and the theme is working as expected.

I wanted to do a pull request but as I only tested this myself and this base: core18 is still not "official", as far as I can tell, I wanted to wait a few days...

@droidmonkey
Copy link
Member

droidmonkey commented Aug 28, 2018

@pachulo
Copy link

pachulo commented Aug 28, 2018

I'm not a real expert, but I mantain the musescore snap and as an active user of Keepassxc I would be happy to help with everything I can to make the snap more stable.

@droidmonkey
Copy link
Member

Awesome I got a build running with your changes. If this checks out I'll push to the store today. Hopefully this fixes all the issues!

https://code.launchpad.net/~droidmonkey/+snap/keepassxc

@elcste
Copy link
Author

elcste commented Aug 28, 2018

It's fixed it for me. I just ran snap refresh, and it downloaded core18 and updated Keepassxc (new revision, same version number). When I open this, it's using Fusion again.

@elcste elcste closed this as completed Aug 28, 2018
@droidmonkey
Copy link
Member

AWESOME! Thank you so much for the assist @pachulo

@juzzlin
Copy link

juzzlin commented Nov 4, 2018

Sorry to bother, but I'm having this same issue with my snap packaged Qt5 app on Ubuntu 18.10. It works fine on Ubuntu 18.04. What was the issue here?

@droidmonkey
Copy link
Member

I ended up using launchpad to build and deploy the snap using Ubuntu 18.04 (Bionic). You have to setup a launchpad project (which is less than straightforward) based on the Git repository you are using. Then you can setup a snap build against that repository.

You can see a working example here: https://code.launchpad.net/~droidmonkey/+snap/keepassxc-develop

And a screengrab of my settings for this thing:

launchpad_settings

@juzzlin
Copy link

juzzlin commented Nov 4, 2018

Thank you very much for the information! I will try to do the same..

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

6 participants