You are not logged in.

#1 2025-01-22 19:51:34

musbur
Member
Registered: 2022-01-14
Posts: 71

[SOLVED] Gimp not working under Wayland/sway?

Hi all,

the excerpt below pretty much sums up my problem. Does gimp really not run under wayland? Of course it does. A search for +gimp +wayland limited to the past year turns up literally nothing. I have xorg-xwayland installed, but that of course doesn't set a DISPLAY variable (if that's the problem).

~$ env | grep WAYLAND
WAYLAND_DISPLAY=wayland-1
~$ gimp --version    
GNU Image Manipulation Program version 2.10.38
~$ gimp              
Cannot open display: 
~$ 

Last edited by musbur (2025-01-24 16:13:24)

Offline

#2 2025-01-22 20:31:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED] Gimp not working under Wayland/sway?

You have to have a DISPLAY variable set and sway should do that normally, did you disable it loading xwayland? https://wiki.archlinux.org/title/Sway#Xwayland  -- also the current version of gimp is still based on gtk2 which long predates any Wayland considerations

How exactly are you starting sway? and/or starting the terminal in which you're trying to launch gimp right now?

FWIW no issue here on KDE

Last edited by V1del (2025-01-22 20:32:23)

Offline

#3 2025-01-22 21:06:26

frostschutz
Member
Registered: 2013-11-15
Posts: 1,622

Re: [SOLVED] Gimp not working under Wayland/sway?

consider using gimp 3 instead (not released yet but in release candidate phase)

Offline

#4 2025-01-23 16:24:21

musbur
Member
Registered: 2022-01-14
Posts: 71

Re: [SOLVED] Gimp not working under Wayland/sway?

V1del wrote:

You have to have a DISPLAY variable set and sway should do that normally, did you disable it loading xwayland? https://wiki.archlinux.org/title/Sway#Xwayland  -- also the current version of gimp is still based on gtk2 which long predates any Wayland considerations

How exactly are you starting sway? and/or starting the terminal in which you're trying to launch gimp right now?

FWIW no issue here on KDE

Sway is started from my .zprofile, and xwayland is not disabled in the config::

~$ grep xwayland .config/sway/config
 
~$ cat .zprofile
if [[ -z "$TMUX" && -z "$WAYLAND_DISPLAY" && "$XDG_VTNR" = "1" ]]; then
    exec /usr/bin/sway
fi
~$

Offline

#5 2025-01-23 18:14:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED] Gimp not working under Wayland/sway?

Mhm, how does your sway config look like? Did you see the note in https://wiki.archlinux.org/title/Sway#Configuration to ensure some necessary default configs are parsed? Also

ps -ef | grep -i xwayland

Last edited by V1del (2025-01-24 12:26:21)

Offline

#6 2025-01-24 16:13:09

musbur
Member
Registered: 2022-01-14
Posts: 71

Re: [SOLVED] Gimp not working under Wayland/sway?

Stupid me. I was 100% certain that I had installed xorg-xwayland. Alas, I hadn't. Sorry for wasting your time ;-)

Offline

Board footer

Powered by FluxBB