GTK-WARNING

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
Rob.P
Posts: 16
Joined: Tue Sep 27, 2022 12:07 am

GTK-WARNING

#1 Post by Rob.P »

Hi. So, I run MX 23.5 as a live usb with root persistence, from an SSD, attached via a SATA to USB 3 cable. I've come across an issue I don't remember seeing before. Upon shutdown, I see an error message, of which a screenshot is attached. Any ideas? Thank you.
Image

User avatar
Adrian
Developer
Posts: 9167
Joined: Wed Jul 12, 2006 1:42 am

Re: GTK-WARNING

#2 Post by Adrian »

It's probably nothing, yad is trying to display that confirmation menu on a display but X is already shut down so it prompts instead in the terminal.

User avatar
fehlix
Developer
Posts: 12851
Joined: Wed Apr 11, 2018 5:09 pm

Re: GTK-WARNING

#3 Post by fehlix »

Rob.P wrote: Sun Jun 01, 2025 5:23 pm Hi. So, I run MX 23.5 as a live usb with root persistence, from an SSD, attached via a SATA to USB 3 cable. I've come across an issue I don't remember seeing before. Upon shutdown, I see an error message, of which a screenshot is attached. Any ideas? Thank you.
That's related to a recently introduced query of yad's version regarding some default button labels.
The current implementation queries yad version this way:

Code: Select all

yad_version=$(yad --version |cut  -d"." -f1)
regardless whether we run in console where yad creates a Gtk warning.
Also the split on "." may fail in case someday a newer yad version would have no dot within the main version number.
Hence to fix both the gtk-warnings and the potential dot-isssue,
by replacing line 27 of /usr/local/lib/antiX/antiX-style-default.sh
with:

Code: Select all

yad_version=$(yad --version 2>/dev/null |  sed "s/[^0-9].*//")
By this it would suppress GTK warning on the console, and cater for future
yad --version output e.g like "16 (GTK+ 4.x.x)", where cut -d "." -f1 , would create a non numerically main version number,
wich will create later issues within the script.
@dolphin_oracle

Rob.P
Posts: 16
Joined: Tue Sep 27, 2022 12:07 am

Re: GTK-WARNING

#4 Post by Rob.P »

An update regarding this "warning". So apparently, this warning only showed up when I changed from the default the "wallpapers" folder, to a different wallpapers folder, under the "live usb storage" folder. i switched it back, to the default folder, warning disappeared.

User avatar
dolphin_oracle
Developer
Posts: 22594
Joined: Sun Dec 16, 2007 12:17 pm

Re: GTK-WARNING

#5 Post by dolphin_oracle »

Rob.P wrote: Sun Jun 08, 2025 1:59 pm An update regarding this "warning". So apparently, this warning only showed up when I changed from the default the "wallpapers" folder, to a different wallpapers folder, under the "live usb storage" folder. i switched it back, to the default folder, warning disappeared.
we also updated the style files causing the issue per fehlix's comment above. :happy: thanks for the report.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

Post Reply

Return to “MX Help”