stefonarch / LXQt-Wayland-files

LXQt implementation in Wayland compositors
GNU General Public License v3.0
65 stars 0 forks source link

Chromium can't run without qt5-wayland #6

Closed knm100 closed 6 months ago

knm100 commented 6 months ago

Normally, Chromium can run on qt6-wayland only, qt5-wayland is not required. But I don't know why, in LXQT2.0+Kwin_wayland with qt6-wayland, I have to install qt5-wayland for chromium to work.

Edited: it is no problem to run chromium in Plasma6 with qt6-wayland only

stefonarch commented 6 months ago

No idea about that. I removed temporarily qt5-wayland (needed by copyq) and chromium starts (I don't use it regularly). What error do you get, if any, from cli?

knm100 commented 6 months ago

Here is the output from cli: qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. [0528/203316.484265:ERROR:elf_dynamic_array_reader.h(64)] tag not found [0528/203316.516310:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) [0528/203316.516380:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)

after installed qt5-wayland, everything is ok.

stefonarch commented 6 months ago
$ chromium
[252502:252502:0528/155409.349517:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[252502:252502:0528/155412.028705:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[252502:252502:0528/155412.036121:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

and opens fine. But it's running in xwayland I see.

knm100 commented 6 months ago

It should be an issue of lxqt-wayland, There is no concern with kwin_wayland. I've tried lxqt-labwc and there is the same issue with chromium

stefonarch commented 6 months ago

It could be about the env vars that are set at startup. As I said I don't use chromium, and didn't investigate yet why it starts in xwayland mode here and what is needed to use for it to use xdg-shell.

stefonarch commented 6 months ago

Ok, I set the flag needed --ozone-platform-hint=auto to enable wayland mode and now I can reproduce it.

But also both labwc -S chromium and kwin_wayland chromium fail from tty, so it looks like this package is simply needed, as it provides the plugin needed. I will check a plasma session later.

stefonarch commented 6 months ago

I checked in plasma6 and it's how you describe. Conclusion: if you're not on plasma and want to use chromium in wayland mode you need qt5-wayland.

knm100 commented 6 months ago

Thank you! It seems that plasma has done a lot of work, is there any chance of porting what plasma does to LXQT sessions?

stefonarch commented 6 months ago

Plasma and kwin have sure much features (some people may say "bloat"), but on the other side this can port also to many bugs. We don't want to overcomplicate things. If you have a feature in mind you'd like to see you can still make a feature request.

knm100 commented 6 months ago

Plasma and kwin have sure much features (some people may say "bloat"), but on the other side this can port also to many bugs. We don't want to overcomplicate things. If you have a feature in mind you'd like to see you can still make a feature request.

In lxqt-labwc,I've found that Chromium can run on qt6-wayland without qt5-base installed. So, It probably really is an issue with environment variable Edited: chromium run on wayland without qt5-base installed ,not on xwayland