Since this seems to be a common issue, I just want to suggest a tip in case you want to make a plot running a script (for instance plot.plt or plot.cmd or plot.bh) from command line as follows: gnuplot -c plot.plt In this way, the plot window survives ONLY for an instant before closing and the following warning message shows up: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. In order to deceive this issue in the easiest way, there is a proper...