Activity log for bug #2002450

Date Who What changed Old value New value Message
2023-01-10 22:07:26 Martín Rincón Botero bug added bug
2023-01-10 22:08:31 Martín Rincón Botero description Using Ubuntu 22.04 (very recent fresh installation) QT applications use X11 by default instead of Wayland. This leads to incomplete menus and all sorts of graphical glitches. The workaround is to add export QT_QPA_PLATFORM=wayland to .profile. As for the mouse cursor, they don't use the current mouse cursor size (which is instead huge). A google search of "mouse cursor too big on Ubuntu" yields quite a few results, signalizing that the issue affects multiple users. A workaround is to add export XCURSOR_SIZE="$(gsettings get org.gnome.desktop.interface cursor-size)" to .profile. The mouse cursor theme is also not respected. Instead, a white mouse cursor is what I see in QT applications. A workaround is to add export XCURSOR_THEME=Yaru to .profile (export XCURSOR_THEME="$(gsettings get org.gnome.desktop.interface cursor-theme)" doesn't work, even though executing gsettings get org.gnome.desktop.interface cursor-theme in the terminal yields 'Yaru'). Trying to investigate the matter as to why this happens, I found at least something relevant regarding the mouse cursor theme: the file x-cursor-theme in etc/alternatives had the lines [Icon Theme] Inherits=DMZ-White which is strange because the default mouse cursor theme is Yaru nowadays and not DMZ-White. However, DMZ-White seems to have been the default in the past (I might be wrong on this), suggesting that those lines are a relic of older Ubuntu versions. Changing the above DMZ-White to Yaru (and deleting the corresponding line in .profile) solves the issue as well (presumably now for all users on this machine). These commands, or an equivalent configuration, should be the default (it's not clear why QT applications are not supposed to use the default environment). Regarding mouse cursor I would also add: when opening a QT application without having done any of the above, the mouse cursor doesn't change. It only happens when the app is made to run using Wayland that the mouse cursor changes. The right top buttons of the window (close, maximize, minimize) also change to a different, "retro" design with Wayland (not with X11, despite all the other glitches), which is clearly not Yaru or even Adwaita. A standard Ubuntu installation, even though it comes with GNOME, should expect users to install QT based applications at some point. They should use Wayland and use the default mouse cursor size and theme with no manual intervention by the user. Using Ubuntu 22.04 (very recent fresh installation) QT applications use X11 by default instead of Wayland. This leads to incomplete menus and all sorts of graphical glitches. The workaround is to add export QT_QPA_PLATFORM=wayland to .profile. As for the mouse cursor, they don't use the current mouse cursor size (which is instead huge). A google search of "mouse cursor too big on Ubuntu" yields quite a few results, signalizing that the issue affects multiple users. A workaround is to add export XCURSOR_SIZE="$(gsettings get org.gnome.desktop.interface cursor-size)" to .profile. The mouse cursor theme is also not respected. Instead, a white mouse cursor is what I see in QT applications. A workaround is to add export XCURSOR_THEME=Yaru to .profile (export XCURSOR_THEME="$(gsettings get org.gnome.desktop.interface cursor-theme)" doesn't work, even though executing gsettings get org.gnome.desktop.interface cursor-theme in the terminal returns 'Yaru'). Trying to investigate the matter as to why this happens, I found at least something relevant regarding the mouse cursor theme: the file x-cursor-theme in etc/alternatives had the lines [Icon Theme] Inherits=DMZ-White which is strange because the default mouse cursor theme is Yaru nowadays and not DMZ-White. However, DMZ-White seems to have been the default in the past (I might be wrong on this), suggesting that those lines are a relic of older Ubuntu versions. Changing the above DMZ-White to Yaru (and deleting the corresponding line in .profile) solves the issue as well (presumably now for all users on this machine). These commands, or an equivalent configuration, should be the default (it's not clear why QT applications are not supposed to use the default environment). Regarding mouse cursor I would also add: when opening a QT application without having done any of the above, the mouse cursor doesn't change. It only happens when the app is made to run using Wayland that the mouse cursor changes. The right top buttons of the window (close, maximize, minimize) also change to a different, "retro" design with Wayland (not with X11, despite all the other glitches), which is clearly not Yaru or even Adwaita. A standard Ubuntu installation, even though it comes with GNOME, should expect users to install QT based applications at some point. They should use Wayland and use the default mouse cursor size and theme with no manual intervention by the user.
2023-01-10 22:23:18 Colin Watson affects launchpad qtbase-opensource-src (Ubuntu)
2023-08-19 12:13:23 Kaan Batın Kolcu bug added subscriber Kaan Batın Kolcu