On 2023-08-15 11:45:59 -0400, Jim McCann wrote: > Some additional information: this bug also triggers for me without > X11 forwarding. > > I don't run a desktop environment or graphical login (login in text > mode and then `startx` with fluxbox launched from .xinitrc); but I > still have xdg-desktop-portal-gtk fail to launch with the log > message 'cannot open display:'.
Probably because /etc/X11/Xsession is not used, as you're using you're own .xinitrc file. I suppose that there would be no such issue with the system /etc/X11/xinit/xinitrc file, which does . /etc/X11/Xsession (fluxbox could be launched from a .xsession file in this case). > Note that this adds a long delay to the startup of both inkscape and > firefox as well; and that removing the xdg-desktop-portal and > xdg-desktop-portal-gtk packages allows these programs to start > normally. Perhaps something is spuriously requiring > xdg-desktop-portal; since my system seems to function fine without > it. IMHO, there should be some file under /etc/X11/Xsession that should set an environment variable saying that the GUI/dbus system is fully operational. Perhaps 95dbus_update-activation-env? Then a GTK application should not try to use a portal if this environment variable is unset. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)