[Gambas-bugtracker] Bug #2598: With gb.gui.qt possible wrong answer from desktop.platform in wayland
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Wed Jul 27 10:37:13 CEST 2022
http://gambaswiki.org/bugtracker/edit?object=BUG.2598&from=L21haW4-
Gianluigi GRADASCHI reported a new bug.
Summary
-------
With gb.gui.qt possible wrong answer from desktop.platform in wayland
Type : Bug
Priority : Medium
Gambas version : Master
Product : Unknown
Description
-----------
With this code:
Public Sub Form_Open()
Dim s As String
Shell "echo $XDG_SESSION_TYPE" To s
Print "echo $XDG_SESSION_TYPE = "; s
Print "DESKTOP PLATFORM = "; Desktop.Platform
End
Console answer with gb.gtk3 :
(DesktopType:2310): Gtk-WARNING **: 10:06:10.164: Negative content width -7 (allocation 1, extents 4x4) while allocating gadget (node headerbar, owner GtkHeaderBar)
(DesktopType:2310): Gtk-WARNING **: 10:06:10.165: gtk_widget_size_allocate(): attempt to allocate widget with width -72 and height 17
(DesktopType:2310): Gtk-WARNING **: 10:06:10.165: Negative content width -23 (allocation 1, extents 12x12) while allocating gadget (node label, owner GtkLabel)
echo $XDG_SESSION_TYPE = wayland
DESKTOP PLATFORM = wayla
Console answer with gb.gui.qt :
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
echo $XDG_SESSION_TYPE = wayland
DESKTOP PLATFORM = x11
System information
------------------
[System]
Gambas=3.17.90 d82e21c (master)
OperatingSystem=Linux
Kernel=5.15.0-40-generic
Architecture=x86_64
Distribution=Ubuntu 22.04 LTS
Desktop=UBUNTU
Font=Ubuntu,11
Scale=8
Theme=yaru
Language=it_IT.UTF-8
Memory=4928M
[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.7.0
DBus=libdbus-1.so.3.19.13
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.29
GStreamer=libgstreamer-1.0.so.0.2001.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.29
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.118.0.0
QT5=libQt5Core.so.5.15.3
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.gtk3
GDMSESSION=ubuntu
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=142609
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SETUP_DISPLAY=:1
GNOME_SHELL_SESSION_MODE=ubuntu
GTK_MODULES=gail:atk-bridge
HOME=<home>
IM_CONFIG_PHASE=1
INVOCATION_ID=20b8f1e7c1954a00b41c90d24ae71270
JOURNAL_STREAM=8:23160
LANG=it_IT.UTF-8
LANGUAGE=it_IT.UTF-8
LC_ADDRESS=it_IT.UTF-8
LC_ALL=it_IT.UTF-8
LC_IDENTIFICATION=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_MONETARY=it_IT.UTF-8
LC_NAME=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
LC_PAPER=it_IT.UTF-8
LC_TELEPHONE=it_IT.UTF-8
LC_TIME=it_IT.UTF-8
LOGNAME=<user>
MANAGERPID=1421
PAPERSIZE=a4
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
PWD=<home>
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LOGGING_RULES=*.debug=false
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1559,unix/<hostname>:/tmp/.ICE-unix/1559
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_LAUNCHER=gnome-keyring
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SYSTEMD_EXEC_PID=1605
TZ=:/etc/localtime
USER=<user>
USERNAME=<user>
WAYLAND_DISPLAY=wayland-0
XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.WTIXP1
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=wayland
XMODIFIERS=@im=ibus
_=/usr/bin/gnome-session
More information about the Bugtracker
mailing list